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

Side by Side Diff: tests/TestingSpecialImageAccess.h

Issue 1861643003: Upgrade SkSpecialImage to have getTextureRef & getROPixels entry points (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address code review comments Created 4 years, 8 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 | « tests/SpecialImageTest.cpp ('k') | no next file » | 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 2016 Google Inc. 2 * Copyright 2016 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 #ifndef TestingSpecialImageAccess_DEFINED 8 #ifndef TestingSpecialImageAccess_DEFINED
9 #define TestingSpecialImageAccess_DEFINED 9 #define TestingSpecialImageAccess_DEFINED
10 10
11 class TestingSpecialImageAccess { 11 class TestingSpecialImageAccess {
12 public: 12 public:
13 static const SkIRect& Subset(const SkSpecialImage* img) { 13 static const SkIRect& Subset(const SkSpecialImage* img) {
14 return img->subset(); 14 return img->subset();
15 } 15 }
16
17 static bool PeekPixels(const SkSpecialImage* img, SkPixmap* pixmap) {
18 return img->peekPixels(pixmap);
19 }
20
21 static GrTexture* PeekTexture(const SkSpecialImage* img) {
22 return img->peekTexture();
23 }
24
25 static bool GetROPixels(const SkSpecialImage* img, SkBitmap* result) {
26 return img->testingOnlyGetROPixels(result);
27 }
28 }; 16 };
29 17
30 #endif 18 #endif
OLDNEW
« no previous file with comments | « tests/SpecialImageTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698