OLD | NEW |
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 Loading... |
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 |
OLD | NEW |