diff options
author | ccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-05 15:30:16 +0000 |
---|---|---|
committer | ccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-05 15:30:16 +0000 |
commit | efa4841b71067fdadf7ab1012f8eb6a0ffef50e4 (patch) | |
tree | c1669f190250db8368c75cd10810b949e12f26e9 /cc/resources/ui_resource_bitmap.cc | |
parent | f5073b6aad9eaec6f9235baf1446c4c9cf3d0d05 (diff) | |
download | chromium_src-efa4841b71067fdadf7ab1012f8eb6a0ffef50e4.zip chromium_src-efa4841b71067fdadf7ab1012f8eb6a0ffef50e4.tar.gz chromium_src-efa4841b71067fdadf7ab1012f8eb6a0ffef50e4.tar.bz2 |
[cc] Allow resources and ui resources to specify wrap mode
All textures are currently GL_CLAMP_TO_EDGE. This is good for tiles,
but not good for the background linen texture, which needs to be
repeated.
Add a mechanism to specify the texture wrap mode.
BUG=133097
Review URL: https://chromiumcodereview.appspot.com/22529002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221433 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources/ui_resource_bitmap.cc')
-rw-r--r-- | cc/resources/ui_resource_bitmap.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/resources/ui_resource_bitmap.cc b/cc/resources/ui_resource_bitmap.cc index 8bbfb37..1510607d 100644 --- a/cc/resources/ui_resource_bitmap.cc +++ b/cc/resources/ui_resource_bitmap.cc @@ -11,10 +11,12 @@ namespace cc { scoped_refptr<UIResourceBitmap> UIResourceBitmap::Create(uint8_t* pixels, UIResourceFormat format, + UIResourceWrapMode wrap_mode, gfx::Size size) { scoped_refptr<UIResourceBitmap> ret = new UIResourceBitmap(); ret->pixels_ = scoped_ptr<uint8_t[]>(pixels); ret->format_ = format; + ret->wrap_mode_ = wrap_mode; ret->size_ = size; return ret; |