Index: android_webview/browser/shared_renderer_state.h |
diff --git a/android_webview/browser/shared_renderer_state.h b/android_webview/browser/shared_renderer_state.h |
index 89554ac8e12aea4648a4aac5b2a84a8a74030056..e2ea7d3ca0fd739e5cd31607a006f706e140ebd0 100644 |
--- a/android_webview/browser/shared_renderer_state.h |
+++ b/android_webview/browser/shared_renderer_state.h |
@@ -12,6 +12,7 @@ |
#include "cc/output/compositor_frame_ack.h" |
#include "ui/gfx/geometry/rect.h" |
#include "ui/gfx/geometry/vector2d.h" |
+#include "ui/gfx/transform.h" |
namespace cc { |
class CompositorFrameAck; |
@@ -44,14 +45,20 @@ class SharedRendererState { |
~SharedRendererState(); |
void ClientRequestDrawGL(); |
+ void ClientPostInvalidate(); |
void SetDrawGLInput(scoped_ptr<DrawGLInput> input); |
scoped_ptr<DrawGLInput> PassDrawGLInput(); |
+ void PostExternalMatrixToChildCompositor(const gfx::Transform& transform); |
+ |
// Set by UI and read by RT. |
void SetHardwareAllowed(bool allowed); |
bool IsHardwareAllowed() const; |
+ const gfx::Rect& ParentClip() const; |
+ const gfx::Transform& ParentTransform() const; |
+ |
void SetSharedContext(gpu::GLInProcessContext* context); |
gpu::GLInProcessContext* GetSharedContext() const; |
@@ -61,6 +68,7 @@ class SharedRendererState { |
private: |
void ClientRequestDrawGLOnUIThread(); |
+ void ClientPostInvalidateOnUIThread(); |
scoped_refptr<base::MessageLoopProxy> ui_loop_; |
BrowserViewRendererClient* client_on_ui_; |
@@ -71,6 +79,7 @@ class SharedRendererState { |
mutable base::Lock lock_; |
scoped_ptr<DrawGLInput> draw_gl_input_; |
bool hardware_allowed_; |
+ gfx::Transform parent_transform_; |
gpu::GLInProcessContext* share_context_; |
cc::ReturnedResourceArray returned_resources_; |
}; |