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

Unified Diff: android_webview/browser/shared_renderer_state.h

Issue 394113002: Tiling priorities in Android Webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
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_;
};

Powered by Google App Engine
This is Rietveld 408576698