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

Unified Diff: cc/resources/resource_update.h

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
Index: cc/resources/resource_update.h
diff --git a/cc/resources/resource_update.h b/cc/resources/resource_update.h
index 47bef7da189bc3c492e2919a2a3f76ac5d7c419f..bd34a276ea51dd2a1b59b5aaf20ce9bafce1573a 100644
--- a/cc/resources/resource_update.h
+++ b/cc/resources/resource_update.h
@@ -1,4 +1,4 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
+// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -19,23 +19,17 @@ namespace cc {
class PrioritizedResource;
struct CC_EXPORT ResourceUpdate {
- static ResourceUpdate Create(PrioritizedResource* resource,
+ static ResourceUpdate Create(PrioritizedResource* texture,
danakj 2014/01/08 17:49:59 They should both be named resource rather than bot
enne (OOO) 2014/01/08 17:51:45 Nope. resource != texture. We call this a textur
simonhong 2014/01/09 04:36:25 Done.
const SkBitmap* bitmap,
gfx::Rect content_rect,
gfx::Rect source_rect,
gfx::Vector2d dest_offset);
- static ResourceUpdate CreateFromCanvas(PrioritizedResource* resource,
- const skia::RefPtr<SkCanvas>& canvas,
- gfx::Rect content_rect,
- gfx::Rect source_rect,
- gfx::Vector2d dest_offset);
ResourceUpdate();
virtual ~ResourceUpdate();
PrioritizedResource* texture;
const SkBitmap* bitmap;
- skia::RefPtr<SkCanvas> canvas;
gfx::Rect content_rect;
gfx::Rect source_rect;
gfx::Vector2d dest_offset;

Powered by Google App Engine
This is Rietveld 408576698