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

Unified Diff: content/browser/compositor/delegated_frame_host.h

Issue 1759323003: Add resize gutter layers to DelegatedFrameHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | content/browser/compositor/delegated_frame_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/delegated_frame_host.h
diff --git a/content/browser/compositor/delegated_frame_host.h b/content/browser/compositor/delegated_frame_host.h
index 5cb93010567641e3f9084ad3eabf931a72e4aed8..e2f7ee5fa86f5a817614c92a5d373b654a6f706d 100644
--- a/content/browser/compositor/delegated_frame_host.h
+++ b/content/browser/compositor/delegated_frame_host.h
@@ -202,6 +202,10 @@ class CONTENT_EXPORT DelegatedFrameHost
// Checks if the resize lock can be released because we received an new frame.
void CheckResizeLock();
+ // Update the layers for the resize gutters to the right and bottom of the
+ // surface layer.
+ void UpdateGutters();
+
// Called after async thumbnailer task completes. Scales and crops the result
// of the copy.
static void CopyFromCompositingSurfaceHasResultForVideo(
@@ -257,6 +261,12 @@ class CONTENT_EXPORT DelegatedFrameHost
bool skipped_frames_;
std::vector<ui::LatencyInfo> skipped_latency_info_list_;
+ scoped_ptr<ui::Layer> right_gutter_;
+ scoped_ptr<ui::Layer> bottom_gutter_;
+
+ // This is the last root background color from a swapped frame.
+ SkColor background_color_;
+
// State for rendering into a Surface.
scoped_ptr<cc::SurfaceIdAllocator> id_allocator_;
scoped_ptr<cc::SurfaceFactory> surface_factory_;
« no previous file with comments | « no previous file | content/browser/compositor/delegated_frame_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698