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

Side by Side Diff: gm/alphagradients.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/aarectmodes.cpp ('k') | gm/arcofzorro.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 2013 Google Inc. 2 * Copyright 2013 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 7
8 #include "gm.h" 8 #include "gm.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkGradientShader.h" 10 #include "SkGradientShader.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 canvas->save(); 66 canvas->save();
67 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) { 67 for (size_t i = 0; i < SK_ARRAY_COUNT(gRec); ++i) {
68 draw_grad(canvas, r, gRec[i].fColor0, gRec[i].fColor1, SkToBool( doPreMul)); 68 draw_grad(canvas, r, gRec[i].fColor0, gRec[i].fColor1, SkToBool( doPreMul));
69 canvas->translate(0, r.height() + 8); 69 canvas->translate(0, r.height() + 8);
70 } 70 }
71 canvas->restore(); 71 canvas->restore();
72 canvas->translate(r.width() + 10, 0); 72 canvas->translate(r.width() + 10, 0);
73 } 73 }
74 } 74 }
75 75
76 virtual uint32_t onGetFlags() const { return kSkipPipe_Flag; } 76 virtual uint32_t onGetFlags() const { return kSkipPipe_Flag | kSkipTiled_Fla g; }
77 77
78 private: 78 private:
79 typedef skiagm::GM INHERITED; 79 typedef skiagm::GM INHERITED;
80 }; 80 };
81 81
82 DEF_GM( return SkNEW(AlphaGradientsGM); ) 82 DEF_GM( return SkNEW(AlphaGradientsGM); )
OLDNEW
« no previous file with comments | « gm/aarectmodes.cpp ('k') | gm/arcofzorro.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698