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

Side by Side Diff: gm/gm.h

Issue 23352003: Create new target to hold gpu test code, enable direct testing of GrEffects in GM. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Rob's comments 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 | « gm/bleed.cpp ('k') | 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 25 matching lines...) Expand all
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 kSkipPDFRasterization_Flag = 1 << 8,
46
47 kGPUOnly_Flag = 1 << 9,
46 }; 48 };
47 49
48 void draw(SkCanvas*); 50 void draw(SkCanvas*);
49 void drawBackground(SkCanvas*); 51 void drawBackground(SkCanvas*);
50 void drawContent(SkCanvas*); 52 void drawContent(SkCanvas*);
51 53
52 SkISize getISize() { return this->onISize(); } 54 SkISize getISize() { return this->onISize(); }
53 const char* shortName(); 55 const char* shortName();
54 56
55 uint32_t getFlags() const { 57 uint32_t getFlags() const {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 SkString fShortName; 108 SkString fShortName;
107 SkColor fBGColor; 109 SkColor fBGColor;
108 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp 110 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp
109 bool fHaveCalledOnceBeforeDraw; 111 bool fHaveCalledOnceBeforeDraw;
110 }; 112 };
111 113
112 typedef SkTRegistry<GM*, void*> GMRegistry; 114 typedef SkTRegistry<GM*, void*> GMRegistry;
113 } 115 }
114 116
115 #endif 117 #endif
OLDNEW
« no previous file with comments | « gm/bleed.cpp ('k') | gm/gmmain.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698