summaryrefslogtreecommitdiffstats
path: root/chromium/cc/resources/prioritized_resource.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/cc/resources/prioritized_resource.h')
-rw-r--r--chromium/cc/resources/prioritized_resource.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/chromium/cc/resources/prioritized_resource.h b/chromium/cc/resources/prioritized_resource.h
index ee90024fd5c..7920f811042 100644
--- a/chromium/cc/resources/prioritized_resource.h
+++ b/chromium/cc/resources/prioritized_resource.h
@@ -25,7 +25,7 @@ class CC_EXPORT PrioritizedResource {
public:
static scoped_ptr<PrioritizedResource> Create(
PrioritizedResourceManager* manager,
- gfx::Size size,
+ const gfx::Size& size,
ResourceFormat format) {
return make_scoped_ptr(new PrioritizedResource(manager, size, format));
}
@@ -40,7 +40,7 @@ class CC_EXPORT PrioritizedResource {
// Setting these to the same value is a no-op.
void SetTextureManager(PrioritizedResourceManager* manager);
PrioritizedResourceManager* resource_manager() { return manager_; }
- void SetDimensions(gfx::Size size, ResourceFormat format);
+ void SetDimensions(const gfx::Size& size, ResourceFormat format);
ResourceFormat format() const { return format_; }
gfx::Size size() const { return size_; }
size_t bytes() const { return bytes_; }
@@ -79,9 +79,9 @@ class CC_EXPORT PrioritizedResource {
// the backing if needed.
void SetPixels(ResourceProvider* resource_provider,
const uint8_t* image,
- gfx::Rect image_rect,
- gfx::Rect source_rect,
- gfx::Vector2d dest_offset);
+ const gfx::Rect& image_rect,
+ const gfx::Rect& source_rect,
+ const gfx::Vector2d& dest_offset);
ResourceProvider::ResourceId resource_id() const {
return backing_ ? backing_->id() : 0;
@@ -107,7 +107,7 @@ class CC_EXPORT PrioritizedResource {
public:
Backing(unsigned id,
ResourceProvider* resource_provider,
- gfx::Size size,
+ const gfx::Size& size,
ResourceFormat format);
~Backing();
void UpdatePriority();
@@ -143,14 +143,14 @@ class CC_EXPORT PrioritizedResource {
bool resource_has_been_deleted_;
-#ifndef NDEBUG
+#if DCHECK_IS_ON
ResourceProvider* resource_provider_;
#endif
DISALLOW_COPY_AND_ASSIGN(Backing);
};
PrioritizedResource(PrioritizedResourceManager* resource_manager,
- gfx::Size size,
+ const gfx::Size& size,
ResourceFormat format);
bool is_above_priority_cutoff() { return is_above_priority_cutoff_; }