diff options
author | ccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-04 21:35:12 +0000 |
---|---|---|
committer | ccameron@chromium.org <ccameron@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-04 21:35:12 +0000 |
commit | 9f4f6a3971d1ae65b345b1d708cbba9a12347525 (patch) | |
tree | 0076ee0a860748a4557461155671d5bd96469abb /cc/resources/scoped_ui_resource.cc | |
parent | a675c011e16db84fc2022a34d25a8c03bf76cdcd (diff) | |
download | chromium_src-9f4f6a3971d1ae65b345b1d708cbba9a12347525.zip chromium_src-9f4f6a3971d1ae65b345b1d708cbba9a12347525.tar.gz chromium_src-9f4f6a3971d1ae65b345b1d708cbba9a12347525.tar.bz2 |
[cc] Enable specifying a overhang/gutter texture.
This is in contrast to drawing overhang region with the LTH's background
color.
Specify the texture to use through WebLayerTreeView.
Use the UI resource framework to manage the upload of the linen texture.
BUG=133097
Review URL: https://chromiumcodereview.appspot.com/23805002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221276 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources/scoped_ui_resource.cc')
-rw-r--r-- | cc/resources/scoped_ui_resource.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cc/resources/scoped_ui_resource.cc b/cc/resources/scoped_ui_resource.cc index 1622552..0136a8e 100644 --- a/cc/resources/scoped_ui_resource.cc +++ b/cc/resources/scoped_ui_resource.cc @@ -32,6 +32,10 @@ ScopedUIResource::~ScopedUIResource() { } } +gfx::Size ScopedUIResource::GetSize() const { + return bitmap_->GetSize(); +} + scoped_refptr<UIResourceBitmap> ScopedUIResource::GetBitmap( UIResourceId uid, bool resource_lost) { |