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

Side by Side Diff: gm/image.cpp

Issue 1808833002: Revert of Add SkSpecialImage::extractSubset & NewFromPixmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 | « bench/PDFBench.cpp ('k') | gyp/core.gypi » ('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 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
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 }
OLDNEW
« no previous file with comments | « bench/PDFBench.cpp ('k') | gyp/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698