Lines Matching defs:SkImageFilter

8 #include "SkImageFilter.h"
39 struct SkImageFilter::Cache::Key {
59 SkImageFilter::Common::~Common() {
65 void SkImageFilter::Common::allocInputs(int count) {
66 const size_t size = count * sizeof(SkImageFilter*);
71 void SkImageFilter::Common::detachInputs(SkImageFilter** inputs) {
72 const size_t size = fInputs.count() * sizeof(SkImageFilter*);
77 bool SkImageFilter::Common::unflatten(SkReadBuffer& buffer, int expectedCount) {
113 SkImageFilter::SkImageFilter(int inputCount, SkImageFilter** inputs, const CropRect* cropRect, uint32_t uniqueID)
115 fInputs(new SkImageFilter*[inputCount]),
128 SkImageFilter::~SkImageFilter() {
135 SkImageFilter::SkImageFilter(int inputCount, SkReadBuffer& buffer)
141 fInputs = SkNEW_ARRAY(SkImageFilter*, fInputCount);
155 void SkImageFilter::flatten(SkWriteBuffer& buffer) const {
158 SkImageFilter* input = getInput(i);
169 bool SkImageFilter::filterImage(Proxy* proxy, const SkBitmap& src,
195 bool SkImageFilter::filterBounds(const SkIRect& src, const SkMatrix& ctm,
202 void SkImageFilter::computeFastBounds(const SkRect& src, SkRect* dst) const {
213 SkImageFilter* input = this->getInput(i);
224 bool SkImageFilter::onFilterImage(Proxy*, const SkBitmap&, const Context&,
229 bool SkImageFilter::canFilterImageGPU() const {
233 bool SkImageFilter::filterImageGPU(Proxy* proxy, const SkBitmap& src, const Context& ctx,
286 bool SkImageFilter::applyCropRect(const Context& ctx, const SkBitmap& src,
307 bool SkImageFilter::applyCropRect(const Context& ctx, Proxy* proxy, const SkBitmap& src,
342 bool SkImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm,
350 SkImageFilter* filter = this->getInput(i);
368 bool SkImageFilter::asFragmentProcessor(GrFragmentProcessor**, GrTexture*, const SkMatrix&,
373 bool SkImageFilter::asColorFilter(SkColorFilter**) const {
379 void SkImageFilter::WrapTexture(GrTexture* texture, int width, int height, SkBitmap* result) {
385 bool SkImageFilter::getInputResultGPU(SkImageFilter::Proxy* proxy,
416 class CacheImpl : public SkImageFilter::Cache {
489 SkImageFilter::Cache* CreateCache() {
490 return SkImageFilter::Cache::Create(kDefaultCacheSize);
495 SkImageFilter::Cache* SkImageFilter::Cache::Create(size_t maxBytes) {
499 SkImageFilter::Cache* SkImageFilter::Cache::Get() {
500 SK_DECLARE_STATIC_LAZY_PTR(SkImageFilter::Cache, cache, CreateCache);