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

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: 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 | « cc/resources/bitmap_content_layer_updater.cc ('k') | cc/resources/resource_update.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_update.h
diff --git a/cc/resources/resource_update.h b/cc/resources/resource_update.h
index 47bef7da189bc3c492e2919a2a3f76ac5d7c419f..cbf20aa6e47730e8c454de10e7e1767e635d0e2c 100644
--- a/cc/resources/resource_update.h
+++ b/cc/resources/resource_update.h
@@ -5,14 +5,11 @@
#ifndef CC_RESOURCES_RESOURCE_UPDATE_H_
#define CC_RESOURCES_RESOURCE_UPDATE_H_
-#include "base/memory/ref_counted.h"
#include "cc/base/cc_export.h"
-#include "skia/ext/refptr.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/vector2d.h"
class SkBitmap;
-class SkCanvas;
namespace cc {
@@ -24,18 +21,12 @@ struct CC_EXPORT ResourceUpdate {
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;
« no previous file with comments | « cc/resources/bitmap_content_layer_updater.cc ('k') | cc/resources/resource_update.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698