// instead of an argument passed to Update().
virtual void Update(ResourceUpdateQueue* queue,
const gfx::Rect& source_rect,
- gfx::Vector2d dest_offset,
+ const gfx::Vector2d& dest_offset,
bool partial_update) = 0;
+
protected:
explicit Resource(scoped_ptr<PrioritizedResource> texture);
// painted opaque. If the layer is marked opaque in the updater, then this
// region should be ignored in preference for the entire layer's area.
virtual void PrepareToUpdate(const gfx::Rect& content_rect,
- gfx::Size tile_size,
+ const gfx::Size& tile_size,
float contents_width_scale,
float contents_height_scale,
gfx::Rect* resulting_opaque_rect) {}