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

Side by Side Diff: gm/shadertext2.cpp

Issue 256373002: Turn on quilt mode in DM. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 7 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 unified diff | Download patch
« no previous file with comments | « gm/shadertext.cpp ('k') | gm/shadertext3.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 #include "gm.h" 7 #include "gm.h"
8 #include "SkCanvas.h" 8 #include "SkCanvas.h"
9 #include "SkGradientShader.h" 9 #include "SkGradientShader.h"
10 #include "SkUnitMappers.h" 10 #include "SkUnitMappers.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 SkScalar fillX = -outlinePaint.measureText(kFillLabel, strlen(kF illLabel)) - kPadX; 197 SkScalar fillX = -outlinePaint.measureText(kFillLabel, strlen(kF illLabel)) - kPadX;
198 SkScalar strokeX = kPadX; 198 SkScalar strokeX = kPadX;
199 canvas->drawText(kFillLabel, strlen(kFillLabel), fillX, y, label Paint); 199 canvas->drawText(kFillLabel, strlen(kFillLabel), fillX, y, label Paint);
200 canvas->drawText(kStrokeLabel, strlen(kStrokeLabel), strokeX, y, labelPaint); 200 canvas->drawText(kStrokeLabel, strlen(kStrokeLabel), strokeX, y, labelPaint);
201 } 201 }
202 } 202 }
203 } 203 }
204 204
205 virtual uint32_t onGetFlags() const SK_OVERRIDE { 205 virtual uint32_t onGetFlags() const SK_OVERRIDE {
206 // disable 565 for now, til mike fixes the debug assert 206 // disable 565 for now, til mike fixes the debug assert
207 return this->INHERITED::onGetFlags() | kSkip565_Flag; 207 return kSkip565_Flag | kSkipTiled_Flag;
208 } 208 }
209 209
210 private: 210 private:
211 typedef GM INHERITED; 211 typedef GM INHERITED;
212 }; 212 };
213 213
214 /////////////////////////////////////////////////////////////////////////////// 214 ///////////////////////////////////////////////////////////////////////////////
215 215
216 static GM* MyFactory(void*) { return new ShaderText2GM; } 216 static GM* MyFactory(void*) { return new ShaderText2GM; }
217 static GMRegistry reg(MyFactory); 217 static GMRegistry reg(MyFactory);
218 } 218 }
OLDNEW
« no previous file with comments | « gm/shadertext.cpp ('k') | gm/shadertext3.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698