OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 <functional> | 8 #include <functional> |
9 #include "gm.h" | 9 #include "gm.h" |
| 10 #include "SkAutoPixmapStorage.h" |
10 #include "SkData.h" | 11 #include "SkData.h" |
11 #include "SkCanvas.h" | 12 #include "SkCanvas.h" |
12 #include "SkRandom.h" | 13 #include "SkRandom.h" |
13 #include "SkStream.h" | 14 #include "SkStream.h" |
14 #include "SkSurface.h" | 15 #include "SkSurface.h" |
15 | 16 |
16 #if SK_SUPPORT_GPU | 17 #if SK_SUPPORT_GPU |
17 #include "GrContext.h" | 18 #include "GrContext.h" |
18 #endif | 19 #endif |
19 | 20 |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 } | 507 } |
507 if (context) { | 508 if (context) { |
508 SkAutoTUnref<SkImage> texImage(image->newTextureImage(context)); | 509 SkAutoTUnref<SkImage> texImage(image->newTextureImage(context)); |
509 if (texImage) { | 510 if (texImage) { |
510 canvas->drawImage(texImage, 0, 0); | 511 canvas->drawImage(texImage, 0, 0); |
511 } | 512 } |
512 } | 513 } |
513 canvas->translate(image->width() + kPad, 0); | 514 canvas->translate(image->width() + kPad, 0); |
514 } | 515 } |
515 } | 516 } |
OLD | NEW |