Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3629)

Unified Diff: cc/resources/bitmap_content_layer_updater.cc

Issue 127053004: [cc] Unify static create method of ResourceUpdate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more cleanup Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/resources/resource_update.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/bitmap_content_layer_updater.cc
diff --git a/cc/resources/bitmap_content_layer_updater.cc b/cc/resources/bitmap_content_layer_updater.cc
index fd0fbdaf59790b8217a551602bfc7ee760703cd1..f2af583cdf4c20a60b5e631c54a4901e0ccd3b67 100644
--- a/cc/resources/bitmap_content_layer_updater.cc
+++ b/cc/resources/bitmap_content_layer_updater.cc
@@ -91,12 +91,11 @@ void BitmapContentLayerUpdater::UpdateTexture(ResourceUpdateQueue* queue,
gfx::Vector2d dest_offset,
bool partial_update) {
CHECK(canvas_);
- ResourceUpdate upload =
- ResourceUpdate::CreateFromCanvas(texture,
- canvas_,
- content_rect(),
- source_rect,
- dest_offset);
+ ResourceUpdate upload = ResourceUpdate::Create(texture,
+ &bitmap_backing_,
+ content_rect(),
+ source_rect,
+ dest_offset);
if (partial_update)
queue->AppendPartialUpload(upload);
else
« no previous file with comments | « no previous file | cc/resources/resource_update.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698