| OLD | NEW |
| 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 #include "gm.h" | 8 #include "gm.h" |
| 9 | 9 |
| 10 namespace skiagm { | 10 namespace skiagm { |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // Draw destination bitmap | 107 // Draw destination bitmap |
| 108 canvas->translate(0, vertOffset); | 108 canvas->translate(0, vertOffset); |
| 109 x = (width - 40) / SkScalar(2); | 109 x = (width - 40) / SkScalar(2); |
| 110 canvas->drawBitmap(fDst[i], x, 0, &paint); | 110 canvas->drawBitmap(fDst[i], x, 0, &paint); |
| 111 canvas->restore(); | 111 canvas->restore(); |
| 112 | 112 |
| 113 canvas->translate(horizOffset, 0); | 113 canvas->translate(horizOffset, 0); |
| 114 } | 114 } |
| 115 } | 115 } |
| 116 | 116 |
| 117 virtual uint32_t onGetFlags() const { return kSkipPicture_Flag | |
| 118 | kSkipPipe_Flag; } | |
| 119 | |
| 120 private: | 117 private: |
| 121 typedef GM INHERITED; | 118 typedef GM INHERITED; |
| 122 }; | 119 }; |
| 123 | 120 |
| 124 ////////////////////////////////////////////////////////////////////////////// | 121 ////////////////////////////////////////////////////////////////////////////// |
| 125 | 122 |
| 126 static GM* MyFactory(void*) { return new BitmapCopyGM; } | 123 static GM* MyFactory(void*) { return new BitmapCopyGM; } |
| 127 static GMRegistry reg(MyFactory); | 124 static GMRegistry reg(MyFactory); |
| 128 } | 125 } |
| OLD | NEW |