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

Unified Diff: android_webview/browser/surfaces_instance.h

Issue 2856913002: Don't submit empty frames in android webview (Closed)
Patch Set: c Created 3 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
« no previous file with comments | « android_webview/browser/hardware_renderer.cc ('k') | android_webview/browser/surfaces_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/surfaces_instance.h
diff --git a/android_webview/browser/surfaces_instance.h b/android_webview/browser/surfaces_instance.h
index 13f75e83b3eb689178630396c0335f37b4394e11..f84ae0551100286f453315b9ac60b99288094587 100644
--- a/android_webview/browser/surfaces_instance.h
+++ b/android_webview/browser/surfaces_instance.h
@@ -72,7 +72,7 @@ class SurfacesInstance : public base::RefCounted<SurfacesInstance>,
const gfx::Rect& damage_rect) override;
void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
- void SetEmptyRootFrame();
+ void SetSolidColorRootFrame();
cc::FrameSinkIdAllocator frame_sink_id_allocator_;
@@ -90,6 +90,8 @@ class SurfacesInstance : public base::RefCounted<SurfacesInstance>,
// This is owned by |display_|.
ParentOutputSurface* output_surface_;
+ gfx::Size surface_size_;
+
DISALLOW_COPY_AND_ASSIGN(SurfacesInstance);
};
« no previous file with comments | « android_webview/browser/hardware_renderer.cc ('k') | android_webview/browser/surfaces_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698