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

Unified Diff: cc/playback/picture_pile_impl.h

Issue 1279843004: cc: Plumb more details about pixel refs to tile manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/playback/picture.cc ('k') | cc/playback/picture_pile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/picture_pile_impl.h
diff --git a/cc/playback/picture_pile_impl.h b/cc/playback/picture_pile_impl.h
index 0e1164b2dff8241b8b0d95e89abcdbd4ea953e00..8da3cad1d92d4f97c2318a10717961cf879282f3 100644
--- a/cc/playback/picture_pile_impl.h
+++ b/cc/playback/picture_pile_impl.h
@@ -49,9 +49,10 @@ class CC_EXPORT PicturePileImpl : public RasterSource {
const gfx::Rect& content_rect,
float contents_scale,
RasterSource::SolidColorAnalysis* analysis) const override;
- void GatherPixelRefs(const gfx::Rect& content_rect,
- float contents_scale,
- std::vector<SkPixelRef*>* pixel_refs) const override;
+ void GatherPixelRefs(
+ const gfx::Rect& content_rect,
+ float contents_scale,
+ std::vector<skia::PositionPixelRef>* pixel_refs) const override;
bool CoversRect(const gfx::Rect& content_rect,
float contents_scale) const override;
void SetShouldAttemptToUseDistanceFieldText() override;
@@ -78,8 +79,12 @@ class CC_EXPORT PicturePileImpl : public RasterSource {
const PicturePileImpl* picture_pile);
~PixelRefIterator();
- SkPixelRef* operator->() const { return *pixel_ref_iterator_; }
- SkPixelRef* operator*() const { return *pixel_ref_iterator_; }
+ const skia::PositionPixelRef* operator->() const {
+ return &(*pixel_ref_iterator_);
+ }
+ const skia::PositionPixelRef& operator*() const {
+ return *pixel_ref_iterator_;
+ }
PixelRefIterator& operator++();
operator bool() const { return pixel_ref_iterator_; }
« no previous file with comments | « cc/playback/picture.cc ('k') | cc/playback/picture_pile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698