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 #ifndef ANDROID_WEBVIEW_BROWSER_GPU_MEMORY_BUFFER_FACTORY_IMPL_H_
6 #define ANDROID_WEBVIEW_BROWSER_GPU_MEMORY_BUFFER_FACTORY_IMPL_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "gpu/command_buffer/client/gpu_memory_buffer_factory.h"
12 struct AwDrawGLFunctionTable
;
14 namespace android_webview
{
16 class GpuMemoryBufferFactoryImpl
: public gpu::GpuMemoryBufferFactory
{
18 GpuMemoryBufferFactoryImpl();
19 virtual ~GpuMemoryBufferFactoryImpl();
21 static void SetAwDrawGLFunctionTable(AwDrawGLFunctionTable
* table
);
23 // Overridden from gpu::GpuMemoryBufferFactory:
24 virtual gfx::GpuMemoryBuffer
* CreateGpuMemoryBuffer(
27 unsigned internalformat
,
28 unsigned usage
) OVERRIDE
;
31 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferFactoryImpl
);
34 } // namespace android_webview
36 #endif // ANDROID_WEBVIEW_BROWSER_GPU_MEMORY_BUFFER_FACTORY_IMPL_H_