summaryrefslogtreecommitdiff
path: root/chromium/cc/resources/scoped_ui_resource.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/cc/resources/scoped_ui_resource.cc')
-rw-r--r--chromium/cc/resources/scoped_ui_resource.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/chromium/cc/resources/scoped_ui_resource.cc b/chromium/cc/resources/scoped_ui_resource.cc
index 16225528cf7..e69b4bc9368 100644
--- a/chromium/cc/resources/scoped_ui_resource.cc
+++ b/chromium/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,12 +32,9 @@ ScopedUIResource::~ScopedUIResource() {
}
}
-scoped_refptr<UIResourceBitmap> ScopedUIResource::GetBitmap(
- UIResourceId uid,
- bool resource_lost) {
+UIResourceBitmap ScopedUIResource::GetBitmap(UIResourceId uid,
+ bool resource_lost) {
return bitmap_;
}
-ScopedUIResource::ScopedUIResource() {}
-
} // namespace cc