зеркало из https://github.com/mozilla/moz-skia.git
Make static const var that is only used in an assert be defined in the debug build only to suppress an unused var warning.
git-svn-id: http://skia.googlecode.com/svn/trunk@4012 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
7b578928a5
Коммит
7c4d06de41
|
@ -75,9 +75,11 @@ public:
|
|||
virtual StageKey stageKey(const GrCustomStage* stage) const SK_OVERRIDE {
|
||||
GrAssert(kIllegalStageClassID != fStageClassID);
|
||||
StageKey stageID = GLProgramStage::GenKey(stage);
|
||||
#if GR_DEBUG
|
||||
static const StageKey kIllegalIDMask =
|
||||
~((1 << kProgramStageKeyBits) - 1);
|
||||
GrAssert(!(kIllegalIDMask & stageID));
|
||||
#endif
|
||||
return fStageClassID | stageID;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче