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

Side by Side Diff: tests/TestingSpecialImageAccess.h

Issue 1762013002: Swap over to using SkImageFilter::filterImage instead of filterImageDeprecated (Closed) Base URL: https://skia.googlesource.com/skia.git@if-fragment
Patch Set: Fix no-GPU build 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 | « 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
(Empty)
1 /*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file
6 */
7
8 #ifndef TestingSpecialImageAccess_DEFINED
9 #define TestingSpecialImageAccess_DEFINED
10
11 class TestingSpecialImageAccess {
12 public:
13 static const SkIRect& Subset(const SkSpecialImage* img) {
14 return img->subset();
15 }
16
17 static bool PeekPixels(const SkSpecialImage* img, SkPixmap* pixmap) {
18 return img->testingOnlyPeekPixels(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 };
29
30 #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