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

Side by Side Diff: gm/aaxfermodes.cpp

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « gm/aaclip.cpp ('k') | gm/addarc.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
2 /* 1 /*
3 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
4 * 3 *
5 * 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
6 * found in the LICENSE file. 5 * found in the LICENSE file.
7 */ 6 */
8 #include "gm.h" 7 #include "gm.h"
9 #include "SkArithmeticMode.h" 8 #include "SkArithmeticMode.h"
10 #include "SkPath.h" 9 #include "SkPath.h"
11 #include "SkShader.h" 10 #include "SkShader.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 for (size_t xfermodeSet = 0; xfermodeSet < 2; xfermodeSet++) { 105 for (size_t xfermodeSet = 0; xfermodeSet < 2; xfermodeSet++) {
107 size_t firstMode = (SkXfermode::kLastCoeffMode + 1) * xfermodeSet; 106 size_t firstMode = (SkXfermode::kLastCoeffMode + 1) * xfermodeSet;
108 canvas->save(); 107 canvas->save();
109 108
110 if (kShape_Pass == drawingPass) { 109 if (kShape_Pass == drawingPass) {
111 fLabelPaint.setTextAlign(SkPaint::kCenter_Align); 110 fLabelPaint.setTextAlign(SkPaint::kCenter_Align);
112 canvas->drawText("Src Unknown", sizeof("Src Unknown") - 1, 111 canvas->drawText("Src Unknown", sizeof("Src Unknown") - 1,
113 kLabelSpacing + kShapeTypeSpacing * 1.5f + kShapeSpacing / 2, 112 kLabelSpacing + kShapeTypeSpacing * 1.5f + kShapeSpacing / 2,
114 kSubtitleSpacing / 2 + fLabelPaint.getTextSize() / 3, fL abelPaint); 113 kSubtitleSpacing / 2 + fLabelPaint.getTextSize() / 3, fL abelPaint);
115 canvas->drawText("Src Opaque", sizeof("Src Opaque") - 1, 114 canvas->drawText("Src Opaque", sizeof("Src Opaque") - 1,
116 kLabelSpacing + kShapeTypeSpacing * 1.5f + kShapeSpacing / 2 + 115 kLabelSpacing + kShapeTypeSpacing * 1.5f + kShapeSpacing / 2 +
117 kPaintSpacing, kSubtitleSpacing / 2 + fLabelPaint.getTex tSize() / 3, 116 kPaintSpacing, kSubtitleSpacing / 2 + fLabelPaint.getTex tSize() / 3,
118 fLabelPaint); 117 fLabelPaint);
119 } 118 }
120 119
121 canvas->translate(0, kSubtitleSpacing + kShapeSpacing/2); 120 canvas->translate(0, kSubtitleSpacing + kShapeSpacing/2);
122 121
123 for (size_t m = 0; m <= SkXfermode::kLastCoeffMode; m++) { 122 for (size_t m = 0; m <= SkXfermode::kLastCoeffMode; m++) {
124 SkXfermode::Mode mode = static_cast<SkXfermode::Mode>(firstMode + m); 123 SkXfermode::Mode mode = static_cast<SkXfermode::Mode>(firstMode + m);
125 canvas->save(); 124 canvas->save();
126 125
127 if (kShape_Pass == drawingPass) { 126 if (kShape_Pass == drawingPass) {
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 275
277 typedef GM INHERITED; 276 typedef GM INHERITED;
278 }; 277 };
279 278
280 ////////////////////////////////////////////////////////////////////////////// 279 //////////////////////////////////////////////////////////////////////////////
281 280
282 static GM* MyFactory(void*) { return new AAXfermodesGM; } 281 static GM* MyFactory(void*) { return new AAXfermodesGM; }
283 static GMRegistry reg(MyFactory); 282 static GMRegistry reg(MyFactory);
284 283
285 } 284 }
OLDNEW
« no previous file with comments | « gm/aaclip.cpp ('k') | gm/addarc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698