fix slow performance on desktops by uping our max-texture-dim from 512 to
whatever the gpu itself broadcasts.
git-svn-id: http://skia.googlecode.com/svn/trunk@742 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/src/GrContext.cpp b/gpu/src/GrContext.cpp
index 5e6b824..9b94b7a 100644
--- a/gpu/src/GrContext.cpp
+++ b/gpu/src/GrContext.cpp
@@ -241,6 +241,10 @@
fTextureCache->setLimits(maxTextures, maxTextureBytes);
}
+int GrContext::getMaxTextureDimension() {
+ return fGpu->maxTextureDimension();
+}
+
///////////////////////////////////////////////////////////////////////////////
GrRenderTarget* GrContext::createPlatformRenderTarget(intptr_t platformRenderTarget,