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

Unified Diff: cc/resources/ui_resource_bitmap.h

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 botched resolve 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_resource.cc ('k') | cc/resources/ui_resource_bitmap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/ui_resource_bitmap.h
diff --git a/cc/resources/ui_resource_bitmap.h b/cc/resources/ui_resource_bitmap.h
index dbf70690792c2801457abf68b0ff9cb7ee51639b..e1b5aee0adbde5786923991311a36b041efa16e4 100644
--- a/cc/resources/ui_resource_bitmap.h
+++ b/cc/resources/ui_resource_bitmap.h
@@ -22,14 +22,20 @@ class CC_EXPORT UIResourceBitmap
enum UIResourceFormat {
RGBA8
};
+ enum UIResourceWrapMode {
+ CLAMP_TO_EDGE,
+ REPEAT
+ };
// Takes ownership of “pixels”.
static scoped_refptr<UIResourceBitmap> Create(uint8_t* pixels,
UIResourceFormat format,
+ UIResourceWrapMode wrap_mode,
gfx::Size size);
gfx::Size GetSize() const { return size_; }
UIResourceFormat GetFormat() const { return format_; }
+ UIResourceWrapMode GetWrapMode() const { return wrap_mode_; }
uint8_t* GetPixels() { return pixels_.get(); }
private:
@@ -40,6 +46,7 @@ class CC_EXPORT UIResourceBitmap
scoped_ptr<uint8_t[]> pixels_;
UIResourceFormat format_;
+ UIResourceWrapMode wrap_mode_;
gfx::Size size_;
DISALLOW_COPY_AND_ASSIGN(UIResourceBitmap);
« no previous file with comments | « cc/resources/scoped_resource.cc ('k') | cc/resources/ui_resource_bitmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698