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

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: 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') | cc/resources/resource_update.h » ('J')
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..382be0edf51ac01b1ffb9785029ed580811fd4b2 100644
--- a/cc/resources/bitmap_content_layer_updater.cc
+++ b/cc/resources/bitmap_content_layer_updater.cc
@@ -1,4 +1,4 @@
-// Copyright 2011 The Chromium Authors. All rights reserved.
+// Copyright 2014 The Chromium Authors. All rights reserved.
danakj 2014/01/08 17:49:59 We don't update the year in files. We only use the
enne (OOO) 2014/01/08 17:51:45 Don't update copyright.
simonhong 2014/01/09 04:36:25 Done.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -91,12 +91,11 @@ void BitmapContentLayerUpdater::UpdateTexture(ResourceUpdateQueue* queue,
gfx::Vector2d dest_offset,
bool partial_update) {
CHECK(canvas_);
- ResourceUpdate upload =
- ResourceUpdate::CreateFromCanvas(texture,
enne (OOO) 2014/01/08 17:51:45 Can this function be removed now along with the ca
simonhong 2014/01/09 04:36:25 I already removed ResourceUpdate::CreateFromCanvas
- 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') | cc/resources/resource_update.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698