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

Unified Diff: cc/trees/layer_tree_host.h

Issue 23805002: [cc] Enable specifying a overhang/gutter texture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 7 years, 3 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 | « cc/resources/scoped_ui_resource.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index be0ab06c868f6ac6fd5c95f822d4f8ad5689bea1..5bf5bb238813debb8e12c60d41a405734c940c1f 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -24,6 +24,7 @@
#include "cc/input/top_controls_state.h"
#include "cc/layers/layer_lists.h"
#include "cc/output/output_surface.h"
+#include "cc/resources/scoped_ui_resource.h"
#include "cc/resources/ui_resource_bitmap.h"
#include "cc/resources/ui_resource_client.h"
#include "cc/scheduler/rate_limiter.h"
@@ -224,6 +225,8 @@ class CC_EXPORT LayerTreeHost : NON_EXPORTED_BASE(public RateLimiterClient) {
has_transparent_background_ = transparent;
}
+ void SetOverhangBitmap(const SkBitmap& bitmap);
+
PrioritizedResourceManager* contents_texture_manager() const {
return contents_texture_manager_.get();
}
@@ -379,6 +382,10 @@ class CC_EXPORT LayerTreeHost : NON_EXPORTED_BASE(public RateLimiterClient) {
SkColor background_color_;
bool has_transparent_background_;
+ // If set, this texture is used to fill in the parts of the screen not
+ // covered by layers.
+ scoped_ptr<ScopedUIResource> overhang_ui_resource_;
+
typedef ScopedPtrVector<PrioritizedResource> TextureList;
size_t partial_texture_update_requests_;
« no previous file with comments | « cc/resources/scoped_ui_resource.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698