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

Unified Diff: cc/playback/picture_pile_impl.h

Issue 1318733006: cc: Do the math for a tile's content rect in layer space once. (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
Index: cc/playback/picture_pile_impl.h
diff --git a/cc/playback/picture_pile_impl.h b/cc/playback/picture_pile_impl.h
index 8da3cad1d92d4f97c2318a10717961cf879282f3..7bb159c5dd23de7aa54d17cdbf196058536f33b6 100644
--- a/cc/playback/picture_pile_impl.h
+++ b/cc/playback/picture_pile_impl.h
@@ -50,11 +50,9 @@ class CC_EXPORT PicturePileImpl : public RasterSource {
float contents_scale,
RasterSource::SolidColorAnalysis* analysis) const override;
void GatherPixelRefs(
- const gfx::Rect& content_rect,
- float contents_scale,
+ const gfx::Rect& layer_rect,
std::vector<skia::PositionPixelRef>* pixel_refs) const override;
- bool CoversRect(const gfx::Rect& content_rect,
- float contents_scale) const override;
+ bool CoversRect(const gfx::Rect& layer_rect) const override;
void SetShouldAttemptToUseDistanceFieldText() override;
bool ShouldAttemptToUseDistanceFieldText() const override;
gfx::Size GetSize() const override;
@@ -74,8 +72,7 @@ class CC_EXPORT PicturePileImpl : public RasterSource {
// Public for testing.
class CC_EXPORT PixelRefIterator {
public:
- PixelRefIterator(const gfx::Rect& content_rect,
- float contents_scale,
+ PixelRefIterator(const gfx::Rect& layer_rect,
const PicturePileImpl* picture_pile);
~PixelRefIterator();

Powered by Google App Engine
This is Rietveld 408576698