| Index: cc/resources/scoped_ui_resource.cc
|
| diff --git a/cc/resources/scoped_ui_resource.cc b/cc/resources/scoped_ui_resource.cc
|
| index 0136a8e7e5ad8d57f29276c50ed96f5bb0954d1d..e69b4bc936800eb1a53cc1e5e5fee1e58477c55b 100644
|
| --- a/cc/resources/scoped_ui_resource.cc
|
| +++ b/cc/resources/scoped_ui_resource.cc
|
| @@ -12,12 +12,12 @@ namespace cc {
|
|
|
| scoped_ptr<ScopedUIResource> ScopedUIResource::Create(
|
| LayerTreeHost* host,
|
| - scoped_refptr<UIResourceBitmap> bitmap) {
|
| + const UIResourceBitmap& bitmap) {
|
| return make_scoped_ptr(new ScopedUIResource(host, bitmap));
|
| }
|
|
|
| ScopedUIResource::ScopedUIResource(LayerTreeHost* host,
|
| - scoped_refptr<UIResourceBitmap> bitmap)
|
| + const UIResourceBitmap& bitmap)
|
| : bitmap_(bitmap), host_(host) {
|
| DCHECK(host_);
|
| id_ = host_->CreateUIResource(this);
|
| @@ -32,16 +32,9 @@ ScopedUIResource::~ScopedUIResource() {
|
| }
|
| }
|
|
|
| -gfx::Size ScopedUIResource::GetSize() const {
|
| - return bitmap_->GetSize();
|
| -}
|
| -
|
| -scoped_refptr<UIResourceBitmap> ScopedUIResource::GetBitmap(
|
| - UIResourceId uid,
|
| - bool resource_lost) {
|
| +UIResourceBitmap ScopedUIResource::GetBitmap(UIResourceId uid,
|
| + bool resource_lost) {
|
| return bitmap_;
|
| }
|
|
|
| -ScopedUIResource::ScopedUIResource() {}
|
| -
|
| } // namespace cc
|
|
|