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

Unified Diff: android_webview/browser/browser_view_renderer.h

Issue 287993004: [Android WebView] Implement Ubercomp for Render Thread support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 6 years, 7 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/browser_view_renderer.h
diff --git a/android_webview/browser/browser_view_renderer.h b/android_webview/browser/browser_view_renderer.h
index 9487a3e4a9517a6613c601d5a3ab2307fef201bf..7195ad3adb2ec4b8d1ba97d87ae81f72cb0358a3 100644
--- a/android_webview/browser/browser_view_renderer.h
+++ b/android_webview/browser/browser_view_renderer.h
@@ -81,7 +81,8 @@ class BrowserViewRenderer : public content::SynchronousCompositorClient,
const gfx::Vector2d& scroll,
const gfx::Rect& global_visible_rect,
const gfx::Rect& clip);
- void DidDrawGL(const DrawGLResult& result);
+ void DidDrawGL(scoped_ptr<DrawGLResult> result);
+ void DidDrawDelegated(scoped_ptr<DrawGLResult> result);
// CapturePicture API methods.
skia::RefPtr<SkPicture> CapturePicture(int width, int height);
@@ -153,6 +154,10 @@ class BrowserViewRenderer : public content::SynchronousCompositorClient,
const gfx::Vector2dF& total_scroll_offset_dip,
const gfx::SizeF& scrollable_size_dip);
+ bool OnDrawHardwareLegacy(jobject java_canvas);
+ bool OnDrawHardware(jobject java_canvas);
+ void ReturnResources();
+
// If we call up view invalidate and OnDraw is not called before a deadline,
// then we keep ticking the SynchronousCompositor so it can make progress.
void FallbackTickFired();
@@ -189,11 +194,15 @@ class BrowserViewRenderer : public content::SynchronousCompositorClient,
bool view_visible_;
bool window_visible_; // Only applicable if |attached_to_window_| is true.
bool attached_to_window_;
+ bool hardware_enabled_;
float dip_scale_;
float page_scale_factor_;
bool on_new_picture_enable_;
bool clear_view_;
+ gfx::Vector2d last_on_draw_scroll_offset_;
+ gfx::Rect last_on_draw_global_visible_rect_;
+
// When true, we should continuously invalidate and keep drawing, for example
// to drive animation. This value is set by the compositor and should always
// reflect the expectation of the compositor and not be reused for other
@@ -209,8 +218,6 @@ class BrowserViewRenderer : public content::SynchronousCompositorClient,
int width_;
int height_;
- DrawGLInput draw_gl_input_;
-
// Current scroll offset in CSS pixels.
gfx::Vector2dF scroll_offset_dip_;

Powered by Google App Engine
This is Rietveld 408576698