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

Unified Diff: src/gpu/GrRecordReplaceDraw.h

Issue 748853002: Add support for hoisting layers in pictures drawn with a matrix (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up Created 6 years, 1 month 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 | « src/gpu/GrLayerHoister.cpp ('k') | src/gpu/GrRecordReplaceDraw.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrRecordReplaceDraw.h
diff --git a/src/gpu/GrRecordReplaceDraw.h b/src/gpu/GrRecordReplaceDraw.h
index 9110ac82f9e09884b355cf7a2ba2b0d472fa61d4..fabeec1020ad785cc40dfc51f3a2a1df9917dfdd 100644
--- a/src/gpu/GrRecordReplaceDraw.h
+++ b/src/gpu/GrRecordReplaceDraw.h
@@ -32,7 +32,7 @@ public:
class ReplacementInfo {
public:
struct Key {
- Key(uint32_t pictureID, unsigned int start, const SkMatrix& ctm)
+ Key(uint32_t pictureID, unsigned start, const SkMatrix& ctm)
: fPictureID(pictureID)
, fStart(start)
, fCTM(ctm) {
@@ -55,9 +55,9 @@ public:
unsigned int start() const { return fStart; }
private:
- const uint32_t fPictureID;
- const unsigned int fStart;
- const SkMatrix fCTM;
+ const uint32_t fPictureID;
+ const unsigned fStart;
+ const SkMatrix fCTM;
};
static const Key& GetKey(const ReplacementInfo& layer) { return layer.fKey; }
@@ -86,11 +86,11 @@ public:
~GrReplacements() { this->freeAll(); }
// Add a new replacement range.
- ReplacementInfo* newReplacement(uint32_t pictureID, unsigned int start, const SkMatrix& ctm);
+ ReplacementInfo* newReplacement(uint32_t pictureID, unsigned start, const SkMatrix& ctm);
// look up a replacement range by its pictureID, start offset and the CTM
// TODO: also need to add clip to lookup
- const ReplacementInfo* lookupByStart(uint32_t pictureID, size_t start,
+ const ReplacementInfo* lookupByStart(uint32_t pictureID, unsigned start,
const SkMatrix& ctm) const;
private:
« no previous file with comments | « src/gpu/GrLayerHoister.cpp ('k') | src/gpu/GrRecordReplaceDraw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698