skia2/tests/TestingSpecialImageAccess.h
robertphillips 646125114b Upgrade SkSpecialImage to have getTextureRef & getROPixels entry points
This more closely aligns the SkSpecialImage API with the SkImage API. In doing so it allows the image filters to handle SkImages that can sneak through while remaining encoded (e.g., if an input filter just returns a wrapped version of the source SkImage)

GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1861643003

Review URL: https://codereview.chromium.org/1861643003
2016-04-08 12:10:42 -07:00

19 lines
380 B
C++

/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file
*/
#ifndef TestingSpecialImageAccess_DEFINED
#define TestingSpecialImageAccess_DEFINED
class TestingSpecialImageAccess {
public:
static const SkIRect& Subset(const SkSpecialImage* img) {
return img->subset();
}
};
#endif