| Index: cc/resources/prioritized_resource.cc
|
| diff --git a/cc/resources/prioritized_resource.cc b/cc/resources/prioritized_resource.cc
|
| index 25415f58bf06fef17c193622fb574785b2a5b491..0fc705a8e8a01da086afdb3b23035aa0bc15ef2e 100644
|
| --- a/cc/resources/prioritized_resource.cc
|
| +++ b/cc/resources/prioritized_resource.cc
|
| @@ -14,7 +14,7 @@
|
| namespace cc {
|
|
|
| PrioritizedResource::PrioritizedResource(PrioritizedResourceManager* manager,
|
| - gfx::Size size,
|
| + const gfx::Size& size,
|
| ResourceFormat format)
|
| : size_(size),
|
| format_(format),
|
| @@ -45,7 +45,8 @@ void PrioritizedResource::SetTextureManager(
|
| manager->RegisterTexture(this);
|
| }
|
|
|
| -void PrioritizedResource::SetDimensions(gfx::Size size, ResourceFormat format) {
|
| +void PrioritizedResource::SetDimensions(const gfx::Size& size,
|
| + ResourceFormat format) {
|
| if (format_ != format || size_ != size) {
|
| is_above_priority_cutoff_ = false;
|
| format_ = format;
|
| @@ -117,7 +118,7 @@ void PrioritizedResource::SetToSelfManagedMemoryPlaceholder(size_t bytes) {
|
|
|
| PrioritizedResource::Backing::Backing(unsigned id,
|
| ResourceProvider* resource_provider,
|
| - gfx::Size size,
|
| + const gfx::Size& size,
|
| ResourceFormat format)
|
| : Resource(id, size, format),
|
| owner_(NULL),
|
|
|