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

Unified Diff: cc/resources/picture.h

Issue 563963002: cc: Remove opaque rect from cc::Picture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pictureopaque: Created 6 years, 3 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/picture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture.h
diff --git a/cc/resources/picture.h b/cc/resources/picture.h
index b7bcf3b7da4870fbfc1f15ab0d49354c52badec5..69e32939bcaca0ae9c2838b9b84573d5c1c6dc93 100644
--- a/cc/resources/picture.h
+++ b/cc/resources/picture.h
@@ -63,7 +63,6 @@ class CC_EXPORT Picture
static scoped_refptr<Picture> CreateFromSkpValue(const base::Value* value);
gfx::Rect LayerRect() const { return layer_rect_; }
- gfx::Rect OpaqueRect() const { return opaque_rect_; }
// Has Record() been called yet?
bool HasRecording() const { return picture_.get() != NULL; }
@@ -135,12 +134,9 @@ class CC_EXPORT Picture
// ownership to this picture.
Picture(const skia::RefPtr<SkPicture>&,
const gfx::Rect& layer_rect,
- const gfx::Rect& opaque_rect,
const PixelRefMap& pixel_refs);
// This constructor will call AdoptRef on the SkPicture.
- Picture(SkPicture*,
- const gfx::Rect& layer_rect,
- const gfx::Rect& opaque_rect);
+ Picture(SkPicture*, const gfx::Rect& layer_rect);
~Picture();
// Record a paint operation. To be able to safely use this SkPicture for
@@ -153,7 +149,6 @@ class CC_EXPORT Picture
void GatherPixelRefs(const SkTileGridFactory::TileGridInfo& tile_grid_info);
gfx::Rect layer_rect_;
- gfx::Rect opaque_rect_;
skia::RefPtr<SkPicture> picture_;
scoped_ptr<const EXPERIMENTAL::SkPlayback> playback_;
« no previous file with comments | « no previous file | cc/resources/picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698