Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / android_webview / browser / gpu_memory_buffer_factory_impl.cc
blobc86042064974e018f8c0d4728db870ed316903d5
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h"
7 #include "android_webview/browser/gpu_memory_buffer_impl.h"
9 namespace android_webview {
11 scoped_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer(gfx::Size size) {
12 scoped_ptr<GpuMemoryBufferImpl> result(new GpuMemoryBufferImpl(size));
13 return result.PassAs<gfx::GpuMemoryBuffer>();
16 } // namespace android_webview