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

Side by Side Diff: samplecode/SampleAARectModes.cpp

Issue 1904673003: Rein in the use of SkDevice.h (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/rrects.cpp ('k') | samplecode/SampleAARects.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 7
8 #include "SampleCode.h" 8 #include "SampleCode.h"
9 #include "SkView.h" 9 #include "SkView.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
11 #include "SkDevice.h"
12 #include "SkColorPriv.h" 11 #include "SkColorPriv.h"
13 #include "SkShader.h" 12 #include "SkShader.h"
14 13
15 static const struct { 14 static const struct {
16 SkXfermode::Mode fMode; 15 SkXfermode::Mode fMode;
17 const char* fLabel; 16 const char* fLabel;
18 } gModes[] = { 17 } gModes[] = {
19 { SkXfermode::kClear_Mode, "Clear" }, 18 { SkXfermode::kClear_Mode, "Clear" },
20 { SkXfermode::kSrc_Mode, "Src" }, 19 { SkXfermode::kSrc_Mode, "Src" },
21 { SkXfermode::kDst_Mode, "Dst" }, 20 { SkXfermode::kDst_Mode, "Dst" },
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 } 123 }
125 124
126 private: 125 private:
127 typedef SampleView INHERITED; 126 typedef SampleView INHERITED;
128 }; 127 };
129 128
130 /////////////////////////////////////////////////////////////////////////////// 129 ///////////////////////////////////////////////////////////////////////////////
131 130
132 static SkView* MyFactory() { return new AARectsModesView; } 131 static SkView* MyFactory() { return new AARectsModesView; }
133 static SkViewRegister reg(MyFactory); 132 static SkViewRegister reg(MyFactory);
OLDNEW
« no previous file with comments | « gm/rrects.cpp ('k') | samplecode/SampleAARects.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698