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

Side by Side Diff: gm/androidfallback.cpp

Issue 48113010: skip android_paint GM in pipe mode (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month 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 | no next file » | 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 2013 Google Inc. 2 * Copyright 2013 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 9
10 namespace skiagm { 10 namespace skiagm {
11 11
12 class AndroidFallbackGM : public GM { 12 class AndroidFallbackGM : public GM {
13 public: 13 public:
14 AndroidFallbackGM() { 14 AndroidFallbackGM() {
15 this->setBGColor(0xFFCCCCCC); 15 this->setBGColor(0xFFCCCCCC);
16 } 16 }
17 17
18 protected: 18 protected:
19 virtual uint32_t onGetFlags() const SK_OVERRIDE {
20 // TODO(scroggo): Undo this if we decide to fix skia:1763.
21 return GM::kSkipPipe_Flag;
22 }
23
19 virtual SkString onShortName() SK_OVERRIDE { 24 virtual SkString onShortName() SK_OVERRIDE {
20 return SkString("android_paint"); 25 return SkString("android_paint");
21 } 26 }
22 27
23 virtual SkISize onISize() SK_OVERRIDE { 28 virtual SkISize onISize() SK_OVERRIDE {
24 return make_isize(500, 500); 29 return make_isize(500, 500);
25 } 30 }
26 31
27 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { 32 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
28 33
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 typedef GM INHERITED; 83 typedef GM INHERITED;
79 }; 84 };
80 85
81 ////////////////////////////////////////////////////////////////////////////// 86 //////////////////////////////////////////////////////////////////////////////
82 87
83 #ifdef SK_BUILD_FOR_ANDROID 88 #ifdef SK_BUILD_FOR_ANDROID
84 DEF_GM( return SkNEW(AndroidFallbackGM); ) 89 DEF_GM( return SkNEW(AndroidFallbackGM); )
85 #endif 90 #endif
86 91
87 } 92 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698