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

Side by Side Diff: gm/gm.h

Issue 21669004: Support multiple PDF rendering backends in the GM (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Eliminate warnings/errors on empty PDF rasterizer list Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | gm/gmmain.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef skiagm_DEFINED 8 #ifndef skiagm_DEFINED
9 #define skiagm_DEFINED 9 #define skiagm_DEFINED
10 10
(...skipping 24 matching lines...) Expand all
35 35
36 enum Flags { 36 enum Flags {
37 kSkipPDF_Flag = 1 << 0, 37 kSkipPDF_Flag = 1 << 0,
38 kSkipPicture_Flag = 1 << 1, 38 kSkipPicture_Flag = 1 << 1,
39 kSkipPipe_Flag = 1 << 2, 39 kSkipPipe_Flag = 1 << 2,
40 kSkipPipeCrossProcess_Flag = 1 << 3, 40 kSkipPipeCrossProcess_Flag = 1 << 3,
41 kSkipTiled_Flag = 1 << 4, 41 kSkipTiled_Flag = 1 << 4,
42 kSkip565_Flag = 1 << 5, 42 kSkip565_Flag = 1 << 5,
43 kSkipScaledReplay_Flag = 1 << 6, 43 kSkipScaledReplay_Flag = 1 << 6,
44 kSkipGPU_Flag = 1 << 7, 44 kSkipGPU_Flag = 1 << 7,
45 kSkipPDFRasterization_Flag = 1 << 8,
45 }; 46 };
46 47
47 void draw(SkCanvas*); 48 void draw(SkCanvas*);
48 void drawBackground(SkCanvas*); 49 void drawBackground(SkCanvas*);
49 void drawContent(SkCanvas*); 50 void drawContent(SkCanvas*);
50 51
51 SkISize getISize() { return this->onISize(); } 52 SkISize getISize() { return this->onISize(); }
52 const char* shortName(); 53 const char* shortName();
53 54
54 uint32_t getFlags() const { 55 uint32_t getFlags() const {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 SkString fShortName; 106 SkString fShortName;
106 SkColor fBGColor; 107 SkColor fBGColor;
107 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp 108 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp
108 bool fHaveCalledOnceBeforeDraw; 109 bool fHaveCalledOnceBeforeDraw;
109 }; 110 };
110 111
111 typedef SkTRegistry<GM*, void*> GMRegistry; 112 typedef SkTRegistry<GM*, void*> GMRegistry;
112 } 113 }
113 114
114 #endif 115 #endif
OLDNEW
« no previous file with comments | « no previous file | gm/gmmain.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698