646125114b
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
19 lines
380 B
C++
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
|