Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(777)

Side by Side Diff: android_webview/browser/gpu_memory_buffer_factory_impl.h

Issue 413103002: Android WebView: Fall back to idle uploads if draw functor table not set (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | android_webview/browser/gpu_memory_buffer_factory_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ANDROID_WEBVIEW_BROWSER_GPU_MEMORY_BUFFER_FACTORY_IMPL_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_GPU_MEMORY_BUFFER_FACTORY_IMPL_H_
6 #define ANDROID_WEBVIEW_BROWSER_GPU_MEMORY_BUFFER_FACTORY_IMPL_H_ 6 #define ANDROID_WEBVIEW_BROWSER_GPU_MEMORY_BUFFER_FACTORY_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "gpu/command_buffer/service/in_process_command_buffer.h" 10 #include "gpu/command_buffer/service/in_process_command_buffer.h"
11 11
12 struct AwDrawGLFunctionTable; 12 struct AwDrawGLFunctionTable;
13 13
14 namespace android_webview { 14 namespace android_webview {
15 15
16 class GpuMemoryBufferFactoryImpl : public gpu::InProcessGpuMemoryBufferFactory { 16 class GpuMemoryBufferFactoryImpl : public gpu::InProcessGpuMemoryBufferFactory {
17 public: 17 public:
18 GpuMemoryBufferFactoryImpl(); 18 GpuMemoryBufferFactoryImpl();
19 virtual ~GpuMemoryBufferFactoryImpl(); 19 virtual ~GpuMemoryBufferFactoryImpl();
20 20
21 static void SetAwDrawGLFunctionTable(AwDrawGLFunctionTable* table); 21 static void SetAwDrawGLFunctionTable(AwDrawGLFunctionTable* table);
22 bool Initialize();
22 23
23 // Overridden from gpu::InProcessGpuMemoryBufferFactory: 24 // Overridden from gpu::InProcessGpuMemoryBufferFactory:
24 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 25 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
25 size_t width, 26 size_t width,
26 size_t height, 27 size_t height,
27 unsigned internalformat, 28 unsigned internalformat,
28 unsigned usage) OVERRIDE; 29 unsigned usage) OVERRIDE;
29 virtual scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffer( 30 virtual scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffer(
30 const gfx::GpuMemoryBufferHandle& handle, 31 const gfx::GpuMemoryBufferHandle& handle,
31 const gfx::Size& size, 32 const gfx::Size& size,
32 unsigned internalformat) OVERRIDE; 33 unsigned internalformat) OVERRIDE;
33 34
34 private: 35 private:
35 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferFactoryImpl); 36 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferFactoryImpl);
36 }; 37 };
37 38
38 } // namespace android_webview 39 } // namespace android_webview
39 40
40 #endif // ANDROID_WEBVIEW_BROWSER_GPU_MEMORY_BUFFER_FACTORY_IMPL_H_ 41 #endif // ANDROID_WEBVIEW_BROWSER_GPU_MEMORY_BUFFER_FACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/gpu_memory_buffer_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698