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

Side by Side Diff: gm/image.cpp

Issue 1787883002: Add SkSpecialImage::extractSubset & NewFromPixmap (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to ToT 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"
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
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 }
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