| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file | 5 * found in the LICENSE file |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkSpecialImage_DEFINED | 8 #ifndef SkSpecialImage_DEFINED |
| 9 #define SkSpecialImage_DEFINED | 9 #define SkSpecialImage_DEFINED |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 uint32_t uniqueID() const { return fUniqueID; } | 46 uint32_t uniqueID() const { return fUniqueID; } |
| 47 virtual bool isOpaque() const { return false; } | 47 virtual bool isOpaque() const { return false; } |
| 48 virtual size_t getSize() const = 0; | 48 virtual size_t getSize() const = 0; |
| 49 | 49 |
| 50 /** | 50 /** |
| 51 * Draw this SpecialImage into the canvas. | 51 * Draw this SpecialImage into the canvas. |
| 52 */ | 52 */ |
| 53 void draw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*) const; | 53 void draw(SkCanvas*, SkScalar x, SkScalar y, const SkPaint*) const; |
| 54 | 54 |
| 55 static SkSpecialImage* NewFromImage(const SkIRect& subset, const SkImage*); | 55 static SkSpecialImage* NewFromImage(SkImageFilter::Proxy*, |
| 56 const SkIRect& subset, |
| 57 const SkImage*); |
| 56 static SkSpecialImage* NewFromRaster(SkImageFilter::Proxy*, | 58 static SkSpecialImage* NewFromRaster(SkImageFilter::Proxy*, |
| 57 const SkIRect& subset, | 59 const SkIRect& subset, |
| 58 const SkBitmap&); | 60 const SkBitmap&); |
| 59 static SkSpecialImage* NewFromGpu(SkImageFilter::Proxy*, | 61 static SkSpecialImage* NewFromGpu(SkImageFilter::Proxy*, |
| 60 const SkIRect& subset, | 62 const SkIRect& subset, |
| 61 uint32_t uniqueID, | 63 uint32_t uniqueID, |
| 62 GrTexture*, | 64 GrTexture*, |
| 63 SkAlphaType at = kPremul_SkAlphaType); | 65 SkAlphaType at = kPremul_SkAlphaType); |
| 64 | 66 |
| 65 /** | 67 /** |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 const uint32_t fUniqueID; | 117 const uint32_t fUniqueID; |
| 116 | 118 |
| 117 // TODO: remove this ASAP (see skbug.com/4965) | 119 // TODO: remove this ASAP (see skbug.com/4965) |
| 118 SkImageFilter::Proxy* fProxy; | 120 SkImageFilter::Proxy* fProxy; |
| 119 | 121 |
| 120 typedef SkRefCnt INHERITED; | 122 typedef SkRefCnt INHERITED; |
| 121 }; | 123 }; |
| 122 | 124 |
| 123 #endif | 125 #endif |
| 124 | 126 |
| OLD | NEW |