Lines Matching defs:SkImageFilter

8 #include "SkImageFilter.h"
23 SkImageFilter::Cache* gExternalCache;
25 SkImageFilter::SkImageFilter(int inputCount, SkImageFilter** inputs, const CropRect* cropRect)
27 fInputs(new SkImageFilter*[inputCount]),
35 SkImageFilter::SkImageFilter(SkImageFilter* input, const CropRect* cropRect)
37 fInputs(new SkImageFilter*[1]),
43 SkImageFilter::SkImageFilter(SkImageFilter* input1, SkImageFilter* input2, const CropRect* cropRect)
44 : fInputCount(2), fInputs(new SkImageFilter*[2]),
52 SkImageFilter::~SkImageFilter() {
59 SkImageFilter::SkImageFilter(int inputCount, SkReadBuffer& buffer) {
62 fInputs = new SkImageFilter*[fInputCount];
86 void SkImageFilter::flatten(SkWriteBuffer& buffer) const {
89 SkImageFilter* input = getInput(i);
99 bool SkImageFilter::filterImage(Proxy* proxy, const SkBitmap& src,
121 bool SkImageFilter::filterBounds(const SkIRect& src, const SkMatrix& ctm,
125 if (SkImageFilter::GetExternalCache()) {
138 void SkImageFilter::computeFastBounds(const SkRect& src, SkRect* dst) const {
149 SkImageFilter* input = this->getInput(i);
160 bool SkImageFilter::onFilterImage(Proxy*, const SkBitmap&, const Context&,
165 bool SkImageFilter::canFilterImageGPU() const {
169 bool SkImageFilter::filterImageGPU(Proxy* proxy, const SkBitmap& src, const Context& ctx,
220 bool SkImageFilter::applyCropRect(const Context& ctx, const SkBitmap& src,
241 bool SkImageFilter::applyCropRect(const Context& ctx, Proxy* proxy, const SkBitmap& src,
276 bool SkImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm,
284 SkImageFilter* filter = this->getInput(i);
302 bool SkImageFilter::asNewEffect(GrEffectRef**, GrTexture*, const SkMatrix&, const SkIRect&) const {
306 bool SkImageFilter::asColorFilter(SkColorFilter**) const {
310 void SkImageFilter::SetExternalCache(Cache* cache) {
314 SkImageFilter::Cache* SkImageFilter::GetExternalCache() {
320 void SkImageFilter::WrapTexture(GrTexture* texture, int width, int height, SkBitmap* result) {
326 bool SkImageFilter::getInputResultGPU(SkImageFilter::Proxy* proxy,
380 class CacheImpl : public SkImageFilter::Cache {
384 bool get(const SkImageFilter* key, SkBitmap* result, SkIPoint* offset) SK_OVERRIDE;
385 void set(const SkImageFilter* key, const SkBitmap& result, const SkIPoint& offset) SK_OVERRIDE;
386 void remove(const SkImageFilter* key) SK_OVERRIDE;
388 typedef const SkImageFilter* Key;
406 bool CacheImpl::get(const SkImageFilter* key, SkBitmap* result, SkIPoint* offset) {
416 void CacheImpl::remove(const SkImageFilter* key) {
424 void CacheImpl::set(const SkImageFilter* key, const SkBitmap& result, const SkIPoint& offset) {
430 SkImageFilter::Cache* SkImageFilter::Cache::Create(int minChildren) {