ImageLayerUpdater::Resource::~Resource() {}
void ImageLayerUpdater::Resource::Update(ResourceUpdateQueue* queue,
- gfx::Rect source_rect,
- gfx::Vector2d dest_offset,
+ const gfx::Rect& source_rect,
+ const gfx::Vector2d& dest_offset,
bool partial_update) {
updater_->UpdateTexture(
queue, texture(), source_rect, dest_offset, partial_update);
scoped_ptr<LayerUpdater::Resource> ImageLayerUpdater::CreateResource(
PrioritizedResourceManager* manager) {
- return scoped_ptr<LayerUpdater::Resource>(
+ return make_scoped_ptr(
new Resource(this, PrioritizedResource::Create(manager)));
}
void ImageLayerUpdater::UpdateTexture(ResourceUpdateQueue* queue,
PrioritizedResource* texture,
- gfx::Rect source_rect,
- gfx::Vector2d dest_offset,
+ const gfx::Rect& source_rect,
+ const gfx::Vector2d& dest_offset,
bool partial_update) {
// Source rect should never go outside the image pixels, even if this
// is requested because the texture extends outside the image.