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

Side by Side Diff: gm/factory.cpp

Issue 867963004: remove unused GM flags (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: guarded flags Created 5 years, 11 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/drrect.cpp ('k') | gm/fatpathfill.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 2012 Google Inc. 2 * Copyright 2012 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 #include "Resources.h" 10 #include "Resources.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 virtual SkISize onISize() { 48 virtual SkISize onISize() {
49 return SkISize::Make(640, 480); 49 return SkISize::Make(640, 480);
50 } 50 }
51 51
52 virtual void onDraw(SkCanvas* canvas) { 52 virtual void onDraw(SkCanvas* canvas) {
53 canvas->drawBitmap(fBitmap, 0, 0); 53 canvas->drawBitmap(fBitmap, 0, 0);
54 } 54 }
55 55
56 // Skip cross process pipe due to https://code.google.com/p/skia/issues/deta il?id=1520
57 virtual uint32_t onGetFlags() const {
58 return INHERITED::onGetFlags() | kSkipPipeCrossProcess_Flag;
59 }
60
61 private: 56 private:
62 SkBitmap fBitmap; 57 SkBitmap fBitmap;
63 58
64 typedef GM INHERITED; 59 typedef GM INHERITED;
65 }; 60 };
66 61
67 ////////////////////////////////////////////////////////////////////////////// 62 //////////////////////////////////////////////////////////////////////////////
68 63
69 static GM* MyFactory(void*) { return new FactoryGM; } 64 static GM* MyFactory(void*) { return new FactoryGM; }
70 static GMRegistry reg(MyFactory); 65 static GMRegistry reg(MyFactory);
71 66
72 } // namespace skiagm 67 } // namespace skiagm
OLDNEW
« no previous file with comments | « gm/drrect.cpp ('k') | gm/fatpathfill.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698