| Index: src/image/SkSurface_Base.h
|
| diff --git a/src/image/SkSurface_Base.h b/src/image/SkSurface_Base.h
|
| index 4da4cfb496866081daa7f343c1d649436a34c27c..30af9761d362c4de4216981df6298cf48405bc9c 100644
|
| --- a/src/image/SkSurface_Base.h
|
| +++ b/src/image/SkSurface_Base.h
|
| @@ -32,9 +32,9 @@ public:
|
| * Allocate an SkImage that represents the current contents of the surface.
|
| * This needs to be able to outlive the surface itself (if need be), and
|
| * must faithfully represent the current contents, even if the surface
|
| - * is chaged after this calle (e.g. it is drawn to via its canvas).
|
| + * is changed after this called (e.g. it is drawn to via its canvas).
|
| */
|
| - virtual SkImage* onNewImageSnapshot() = 0;
|
| + virtual SkImage* onNewImageSnapshot(Budgeted) = 0;
|
|
|
| /**
|
| * Default implementation:
|
| @@ -61,7 +61,7 @@ public:
|
| virtual void onCopyOnWrite(ContentChangeMode) = 0;
|
|
|
| inline SkCanvas* getCachedCanvas();
|
| - inline SkImage* getCachedImage();
|
| + inline SkImage* getCachedImage(Budgeted);
|
|
|
| // called by SkSurface to compute a new genID
|
| uint32_t newGenerationID();
|
| @@ -87,9 +87,9 @@ SkCanvas* SkSurface_Base::getCachedCanvas() {
|
| return fCachedCanvas;
|
| }
|
|
|
| -SkImage* SkSurface_Base::getCachedImage() {
|
| +SkImage* SkSurface_Base::getCachedImage(Budgeted budgeted) {
|
| if (NULL == fCachedImage) {
|
| - fCachedImage = this->onNewImageSnapshot();
|
| + fCachedImage = this->onNewImageSnapshot(budgeted);
|
| SkASSERT(!fCachedCanvas || fCachedCanvas->getSurfaceBase() == this);
|
| }
|
| return fCachedImage;
|
|
|