summaryrefslogtreecommitdiffstats
path: root/cc/resources/prioritized_resource.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/resources/prioritized_resource.cc')
-rw-r--r--cc/resources/prioritized_resource.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/cc/resources/prioritized_resource.cc b/cc/resources/prioritized_resource.cc
index 0fc705a..25415f5 100644
--- a/cc/resources/prioritized_resource.cc
+++ b/cc/resources/prioritized_resource.cc
@@ -14,7 +14,7 @@
namespace cc {
PrioritizedResource::PrioritizedResource(PrioritizedResourceManager* manager,
- const gfx::Size& size,
+ gfx::Size size,
ResourceFormat format)
: size_(size),
format_(format),
@@ -45,8 +45,7 @@ void PrioritizedResource::SetTextureManager(
manager->RegisterTexture(this);
}
-void PrioritizedResource::SetDimensions(const gfx::Size& size,
- ResourceFormat format) {
+void PrioritizedResource::SetDimensions(gfx::Size size, ResourceFormat format) {
if (format_ != format || size_ != size) {
is_above_priority_cutoff_ = false;
format_ = format;
@@ -118,7 +117,7 @@ void PrioritizedResource::SetToSelfManagedMemoryPlaceholder(size_t bytes) {
PrioritizedResource::Backing::Backing(unsigned id,
ResourceProvider* resource_provider,
- const gfx::Size& size,
+ gfx::Size size,
ResourceFormat format)
: Resource(id, size, format),
owner_(NULL),