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

Unified Diff: android_webview/browser/browser_view_renderer.h

Issue 1474653002: Revert of Remove fallback tick software draw. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keep changed tests, revert fallback tick removal. Created 5 years, 1 month 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
« no previous file with comments | « no previous file | android_webview/browser/browser_view_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4d31689829ef4c2d727b09fa143a365e63aa39f3..21c28c8f97da3ef4ad14aef6cfa08917f44ece72 100644
--- a/android_webview/browser/browser_view_renderer.h
+++ b/android_webview/browser/browser_view_renderer.h
@@ -120,12 +120,18 @@ class BrowserViewRenderer : public content::SynchronousCompositorClient {
private:
void SetTotalRootLayerScrollOffset(const gfx::Vector2dF& new_value_dip);
bool CanOnDraw();
+ // Posts an invalidate with fallback tick. All invalidates posted while an
+ // invalidate is pending will be posted as a single invalidate after the
+ // pending invalidate is done.
+ void PostInvalidateWithFallback();
+ void CancelFallbackTick();
void UpdateCompositorIsActive();
bool CompositeSW(SkCanvas* canvas);
scoped_refptr<base::trace_event::ConvertableToTraceFormat>
RootLayerStateAsValue(const gfx::Vector2dF& total_scroll_offset_dip,
const gfx::SizeF& scrollable_size_dip);
+ bool CompositeHw();
void ReturnUnusedResource(scoped_ptr<ChildFrame> frame);
void ReturnResourceFromParent();
@@ -136,6 +142,11 @@ class BrowserViewRenderer : public content::SynchronousCompositorClient {
void PostFallbackTick();
void FallbackTickFired();
+ // Force invoke the compositor to run produce a 1x1 software frame that is
+ // immediately discarded. This is a hack to force invoke parts of the
+ // compositor that are not directly exposed here.
+ void ForceFakeCompositeSW();
+
gfx::Vector2d max_scroll_offset() const;
void UpdateMemoryPolicy();
@@ -168,6 +179,10 @@ class BrowserViewRenderer : public content::SynchronousCompositorClient {
gfx::Vector2d last_on_draw_scroll_offset_;
gfx::Rect last_on_draw_global_visible_rect_;
+ base::CancelableClosure post_fallback_tick_;
+ base::CancelableClosure fallback_tick_fired_;
+ bool fallback_tick_pending_;
+
gfx::Size size_;
gfx::SizeF scrollable_size_dip_;
« no previous file with comments | « no previous file | android_webview/browser/browser_view_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698