Index: src/core/SkPictureShader.cpp |
diff --git a/src/core/SkPictureShader.cpp b/src/core/SkPictureShader.cpp |
index 501d5153f524d136762bb6eaef172aa7cfeb663c..bbac9ed1146b32f0074caa86316c42eb5d1b83af 100644 |
--- a/src/core/SkPictureShader.cpp |
+++ b/src/core/SkPictureShader.cpp |
@@ -17,6 +17,7 @@ |
#if SK_SUPPORT_GPU |
#include "GrContext.h" |
+#include "GrCaps.h" |
#endif |
namespace { |
@@ -345,7 +346,7 @@ bool SkPictureShader::asFragmentProcessor(GrContext* context, const SkPaint& pai |
GrFragmentProcessor** fp) const { |
int maxTextureSize = 0; |
if (context) { |
- maxTextureSize = context->getMaxTextureSize(); |
+ maxTextureSize = context->caps()->maxTextureSize(); |
} |
SkAutoTUnref<SkShader> bitmapShader(this->refBitmapShader(viewM, localMatrix, maxTextureSize)); |
if (!bitmapShader) { |