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