Hide GrDrawTarget::Caps's member vars
Review URL: https://codereview.appspot.com/6499044
git-svn-id: http://skia.googlecode.com/svn/trunk@5328 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 8175d15..13ada9a 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -515,11 +515,11 @@
}
int GrContext::getMaxTextureSize() const {
- return fGpu->getCaps().fMaxTextureSize;
+ return fGpu->getCaps().maxTextureSize();
}
int GrContext::getMaxRenderTargetSize() const {
- return fGpu->getCaps().fMaxRenderTargetSize;
+ return fGpu->getCaps().maxRenderTargetSize();
}
///////////////////////////////////////////////////////////////////////////////
@@ -537,7 +537,7 @@
bool GrContext::supportsIndex8PixelConfig(const GrTextureParams* params,
int width, int height) const {
const GrDrawTarget::Caps& caps = fGpu->getCaps();
- if (!caps.f8BitPaletteSupport) {
+ if (!caps.eightBitPaletteSupport()) {
return false;
}
@@ -545,7 +545,7 @@
if (!isPow2) {
bool tiled = NULL != params && params->isTiled();
- if (tiled && !caps.fNPOTTextureTileSupport) {
+ if (tiled && !caps.npotTextureTileSupport()) {
return false;
}
}