Index: src/image/SkSurface_Gpu.cpp |
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp |
index 34aec2b7bbb0c43ba29779be2c47f2ab3677266a..a1c31f31379ad022735e69dd5a64636f6149fca4 100644 |
--- a/src/image/SkSurface_Gpu.cpp |
+++ b/src/image/SkSurface_Gpu.cpp |
@@ -7,7 +7,7 @@ |
#include "SkSurface_Gpu.h" |
-#include "GrGpuResourceCacheAccess.h" |
+#include "GrGpuResourcePriv.h" |
#include "SkCanvas.h" |
#include "SkGpuDevice.h" |
#include "SkImage_Base.h" |
@@ -70,8 +70,8 @@ void SkSurface_Gpu::onCopyOnWrite(ContentChangeMode mode) { |
SkASSERT(image); |
if (rt->asTexture() == SkTextureImageGetTexture(image)) { |
GrRenderTarget* oldRT = this->fDevice->accessRenderTarget(); |
- SkSurface::Budgeted budgeted = oldRT->cacheAccess().isBudgeted() ? kYes_Budgeted : |
- kNo_Budgeted; |
+ SkSurface::Budgeted budgeted = oldRT->resourcePriv().isBudgeted() ? kYes_Budgeted : |
+ kNo_Budgeted; |
SkAutoTUnref<SkGpuDevice> newDevice( |
SkGpuDevice::Create(oldRT->getContext(), budgeted, fDevice->imageInfo(), |
oldRT->numSamples(), &this->props(), 0)); |