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

Side by Side Diff: gm/srcmode.cpp

Issue 1905383002: Retract SkDevice a bit more (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 | « no previous file | gm/xfermodes3.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 2012 Google Inc. 2 * Copyright 2012 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"
11 #include "SkPath.h" 11 #include "SkPath.h"
12 #include "SkSurface.h" 12 #include "SkSurface.h"
13 13
14 #if SK_SUPPORT_GPU
15 #include "SkGpuDevice.h"
16 #endif
17
18 #define W SkIntToScalar(80) 14 #define W SkIntToScalar(80)
19 #define H SkIntToScalar(60) 15 #define H SkIntToScalar(60)
20 16
21 typedef void (*PaintProc)(SkPaint*); 17 typedef void (*PaintProc)(SkPaint*);
22 18
23 static void identity_paintproc(SkPaint* paint) { 19 static void identity_paintproc(SkPaint* paint) {
24 paint->setShader(nullptr); 20 paint->setShader(nullptr);
25 } 21 }
26 22
27 static void gradient_paintproc(SkPaint* paint) { 23 static void gradient_paintproc(SkPaint* paint) {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 surf->draw(canvas, 0, 0, nullptr); 135 surf->draw(canvas, 0, 0, nullptr);
140 } 136 }
141 137
142 private: 138 private:
143 typedef skiagm::GM INHERITED; 139 typedef skiagm::GM INHERITED;
144 }; 140 };
145 141
146 /////////////////////////////////////////////////////////////////////////////// 142 ///////////////////////////////////////////////////////////////////////////////
147 143
148 DEF_GM(return new SrcModeGM;) 144 DEF_GM(return new SrcModeGM;)
OLDNEW
« no previous file with comments | « no previous file | gm/xfermodes3.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698