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

Unified Diff: src/gpu/GrDrawState.h

Issue 27192003: Start cleaning up 64bit Win warnings (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: cleanup Created 7 years, 2 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 | « include/gpu/GrTypes.h ('k') | src/gpu/GrDrawState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawState.h
===================================================================
--- src/gpu/GrDrawState.h (revision 11751)
+++ src/gpu/GrDrawState.h (working copy)
@@ -1014,7 +1014,7 @@
for (int i = 0; i < fColorStageCnt; ++i) {
SkNEW_APPEND_TO_TARRAY(&drawState->fColorStages, GrEffectStage, (fStages[i]));
}
- int coverageStageCnt = fStages.count() - fColorStageCnt;
+ int coverageStageCnt = int(fStages.count()) - fColorStageCnt;
bsalomon 2013/10/14 15:17:02 I think we conventionally write this cast as (int)
robertphillips 2013/10/14 17:39:26 Done.
drawState->fCoverageStages.reset();
for (int i = 0; i < coverageStageCnt; ++i) {
SkNEW_APPEND_TO_TARRAY(&drawState->fCoverageStages,
@@ -1023,7 +1023,7 @@
}
bool isEqual(const GrDrawState& state) const {
- int numCoverageStages = fStages.count() - fColorStageCnt;
+ int numCoverageStages = int(fStages.count()) - fColorStageCnt;
if (fRenderTarget != state.fRenderTarget.get() ||
fColorStageCnt != state.fColorStages.count() ||
numCoverageStages != state.fCoverageStages.count() ||
« no previous file with comments | « include/gpu/GrTypes.h ('k') | src/gpu/GrDrawState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698