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

Unified Diff: src/core/SkMatrixClipStateMgr.h

Issue 244273002: fix size_t/int warnings in pictures (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 8 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 | src/core/SkMatrixClipStateMgr.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkMatrixClipStateMgr.h
diff --git a/src/core/SkMatrixClipStateMgr.h b/src/core/SkMatrixClipStateMgr.h
index 270eacd0328293e4d2fbcf207468235dd8a995af..016baa008a6cc0abb7ff3b1fa6d4db4bddc37c2e 100644
--- a/src/core/SkMatrixClipStateMgr.h
+++ b/src/core/SkMatrixClipStateMgr.h
@@ -368,19 +368,19 @@ protected:
// skp that must be filled in when the current open state is closed. These are
// here rather then distributed across the MatrixClipState's because saveLayers
// can cause MC states to be nested.
- SkTDArray<int32_t> *fSkipOffsets;
+ SkTDArray<int32_t> *fSkipOffsets; // TODO: should we store u32 or size_t instead?
SkDEBUGCODE(void validate();)
int MCStackPush(SkCanvas::SaveFlags flags);
- void addClipOffset(int offset) {
+ void addClipOffset(size_t offset) {
SkASSERT(NULL != fSkipOffsets);
SkASSERT(kIdentityWideOpenStateID != fCurOpenStateID);
SkASSERT(fCurMCState->fHasOpen);
SkASSERT(!fCurMCState->fIsSaveLayer);
- *fSkipOffsets->append() = offset;
+ *fSkipOffsets->append() = SkToS32(offset);
}
void writeDeltaMat(int currentMatID, int desiredMatID);
« no previous file with comments | « no previous file | src/core/SkMatrixClipStateMgr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698