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

Unified Diff: cc/test/fake_scoped_ui_resource.cc

Issue 22529002: [cc] Allow resources and ui resources to specify wrap mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo and add asserts Created 7 years, 4 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
Index: cc/test/fake_scoped_ui_resource.cc
diff --git a/cc/test/fake_scoped_ui_resource.cc b/cc/test/fake_scoped_ui_resource.cc
index 02f0fa9b12f0201f82c4443400944a254a920721..73b39072305258ea8decabd34460f3b9cbc2cc5b 100644
--- a/cc/test/fake_scoped_ui_resource.cc
+++ b/cc/test/fake_scoped_ui_resource.cc
@@ -16,7 +16,10 @@ scoped_ptr<FakeScopedUIResource> FakeScopedUIResource::Create(
FakeScopedUIResource::FakeScopedUIResource(LayerTreeHost* host) {
ResetCounters();
bitmap_ = UIResourceBitmap::Create(
- new uint8_t[1], UIResourceBitmap::RGBA8, gfx::Size(1, 1));
+ new uint8_t[1],
+ UIResourceBitmap::RGBA8,
+ UIResourceBitmap::ClampToEdge,
+ gfx::Size(1, 1));
host_ = host;
id_ = host_->CreateUIResource(this);
}

Powered by Google App Engine
This is Rietveld 408576698