Index: src/image/SkSurface.cpp |
diff --git a/src/image/SkSurface.cpp b/src/image/SkSurface.cpp |
index 4fc904539b9acd6fb5f938eb931c56d94cc711bb..b018ef9756b96fccd584a7590cf505553cd107f3 100644 |
--- a/src/image/SkSurface.cpp |
+++ b/src/image/SkSurface.cpp |
@@ -79,7 +79,7 @@ SkSurface_Base::~SkSurface_Base() { |
} |
void SkSurface_Base::onDraw(SkCanvas* canvas, SkScalar x, SkScalar y, const SkPaint* paint) { |
- SkImage* image = this->newImageSnapshot(kYes_Budgeted); |
+ SkImage* image = this->newImageSnapshot(SkBudgeted::kYes); |
if (image) { |
canvas->drawImage(image, x, y, paint); |
image->unref(); |
@@ -163,12 +163,12 @@ SkCanvas* SkSurface::getCanvas() { |
return asSB(this)->getCachedCanvas(); |
} |
-SkImage* SkSurface::newImageSnapshot(Budgeted budgeted) { |
+SkImage* SkSurface::newImageSnapshot(SkBudgeted budgeted) { |
// the caller will call unref() to balance this |
return asSB(this)->refCachedImage(budgeted, kNo_ForceUnique); |
} |
-SkImage* SkSurface::newImageSnapshot(Budgeted budgeted, ForceUnique unique) { |
+SkImage* SkSurface::newImageSnapshot(SkBudgeted budgeted, ForceUnique unique) { |
// the caller will call unref() to balance this |
return asSB(this)->refCachedImage(budgeted, unique); |
} |
@@ -211,7 +211,7 @@ SkSurface* SkSurface::NewRenderTargetDirect(GrRenderTarget*, const SkSurfaceProp |
return nullptr; |
} |
-SkSurface* SkSurface::NewRenderTarget(GrContext*, Budgeted, const SkImageInfo&, int, |
+SkSurface* SkSurface::NewRenderTarget(GrContext*, SkBudgeted, const SkImageInfo&, int, |
const SkSurfaceProps*, GrTextureStorageAllocator) { |
return nullptr; |
} |