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

Side by Side Diff: experimental/fiddle/fiddle_main.h

Issue 1895103002: experimental/fiddle: update to new SkImage API (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 | experimental/fiddle/fiddle_main.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 2015 Google Inc. 2 * Copyright 2015 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 #ifndef fiddle_main_DEFINED 7 #ifndef fiddle_main_DEFINED
8 #define fiddle_main_DEFINED 8 #define fiddle_main_DEFINED
9 9
10 #include "skia.h" 10 #include "skia.h"
11 11
12 extern SkBitmap source; 12 extern SkBitmap source;
13 extern SkImage* image; 13 extern sk_sp<SkImage> image;
14 14
15 struct DrawOptions { 15 struct DrawOptions {
16 DrawOptions(int w, int h, bool r, bool g, bool p, bool k, const char* s) 16 DrawOptions(int w, int h, bool r, bool g, bool p, bool k, const char* s)
17 : size(SkISize::Make(w, h)) 17 : size(SkISize::Make(w, h))
18 , raster(r) 18 , raster(r)
19 , gpu(g) 19 , gpu(g)
20 , pdf(p) 20 , pdf(p)
21 , skp(k) 21 , skp(k)
22 , source(s) {} 22 , source(s) {}
23 SkISize size; 23 SkISize size;
24 bool raster; 24 bool raster;
25 bool gpu; 25 bool gpu;
26 bool pdf; 26 bool pdf;
27 bool skp; 27 bool skp;
28 const char* source; 28 const char* source;
29 }; 29 };
30 30
31 extern DrawOptions GetDrawOptions(); 31 extern DrawOptions GetDrawOptions();
32 extern void draw(SkCanvas*); 32 extern void draw(SkCanvas*);
33 33
34 #endif // fiddle_main_DEFINED 34 #endif // fiddle_main_DEFINED
OLDNEW
« no previous file with comments | « no previous file | experimental/fiddle/fiddle_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698