Index: android_webview/browser/in_process_view_renderer.h |
diff --git a/android_webview/browser/in_process_view_renderer.h b/android_webview/browser/in_process_view_renderer.h |
index f7c4279006aa243488f08f8fdc170019fa1a5161..17b83f5a5584a1bae9597052f3240bcfb4e1bf8b 100644 |
--- a/android_webview/browser/in_process_view_renderer.h |
+++ b/android_webview/browser/in_process_view_renderer.h |
@@ -12,6 +12,7 @@ |
#include "base/cancelable_callback.h" |
#include "content/public/browser/android/synchronous_compositor.h" |
#include "content/public/browser/android/synchronous_compositor_client.h" |
+#include "gpu/command_buffer/service/in_process_command_buffer.h" |
#include "ui/gfx/vector2d_f.h" |
namespace content { |
@@ -97,6 +98,20 @@ class InProcessViewRenderer : public BrowserViewRenderer, |
bool RequestProcessGL(); |
private: |
+ class DeferredGpuCommandService : public gpu::InProcessCommandBuffer::Service { |
+ public: |
+ DeferredGpuCommandService(); |
+ virtual ~DeferredGpuCommandService(); |
boliu
2014/02/08 18:55:54
Destructor needs to be protected. Also missing a f
no sievers
2014/02/12 03:09:15
Thanks! Done.
|
+ |
+ virtual void ScheduleTask(const base::Closure& task) OVERRIDE; |
+ virtual void ScheduleIdleWork(const base::Closure& task) OVERRIDE; |
+ |
+ void RunTasks(); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(DeferredGpuCommandService); |
+ }; |
+ |
// Checks the continuous invalidate and block invalidate state, and schedule |
// invalidates appropriately. If |invalidate_ignore_compositor| is true, |
// then send a view invalidate regardless of compositor expectation. |
@@ -186,6 +201,8 @@ class InProcessViewRenderer : public BrowserViewRenderer, |
content::SynchronousCompositorMemoryPolicy memory_policy_; |
+ scoped_refptr<DeferredGpuCommandService> gl_queue_; |
+ |
DISALLOW_COPY_AND_ASSIGN(InProcessViewRenderer); |
}; |