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..6cef5734753783abe018d0dea521e18e70dd343c 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 { |
+ ClampToEdge, |
piman
2013/08/07 20:55:05
nit: chrome style = uppercase for enum values.
ccameron
2013/08/31 00:37:58
Done.
|
+ 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); |