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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 27973002: cc: Adding ETC1 support to UIResourceBitmap and ResourceProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: latest comments Created 7 years, 2 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/scheduler/texture_uploader.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index dae845cafeb7acb335b49c74e08afeb125a10923..eacd8b15f69a407dba52c7af3e6ced5da4648b60 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -693,8 +693,9 @@ void LayerTreeHost::SetOverhangBitmap(const SkBitmap& bitmap) {
bitmap_copy.setImmutable();
}
- overhang_ui_resource_ = ScopedUIResource::Create(
- this, UIResourceBitmap(bitmap_copy, UIResourceBitmap::REPEAT));
+ UIResourceBitmap overhang_bitmap(bitmap_copy);
+ overhang_bitmap.SetWrapMode(UIResourceBitmap::REPEAT);
+ overhang_ui_resource_ = ScopedUIResource::Create(this, overhang_bitmap);
}
void LayerTreeHost::SetVisible(bool visible) {
« no previous file with comments | « cc/scheduler/texture_uploader.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698