| Index: src/gpu/GrContext.cpp
|
| ===================================================================
|
| --- src/gpu/GrContext.cpp (revision 8359)
|
| +++ src/gpu/GrContext.cpp (working copy)
|
| @@ -548,15 +548,15 @@
|
| }
|
|
|
| int GrContext::getMaxTextureSize() const {
|
| - return fGpu->getCaps().maxTextureSize();
|
| + return fGpu->caps()->maxTextureSize();
|
| }
|
|
|
| int GrContext::getMaxRenderTargetSize() const {
|
| - return fGpu->getCaps().maxRenderTargetSize();
|
| + return fGpu->caps()->maxRenderTargetSize();
|
| }
|
|
|
| int GrContext::getMaxSampleCount() const {
|
| - return fGpu->getCaps().maxSampleCount();
|
| + return fGpu->caps()->maxSampleCount();
|
| }
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
| @@ -573,8 +573,8 @@
|
|
|
| bool GrContext::supportsIndex8PixelConfig(const GrTextureParams* params,
|
| int width, int height) const {
|
| - const GrDrawTarget::Caps& caps = fGpu->getCaps();
|
| - if (!caps.eightBitPaletteSupport()) {
|
| + const GrDrawTarget::Caps* caps = fGpu->caps();
|
| + if (!caps->eightBitPaletteSupport()) {
|
| return false;
|
| }
|
|
|
| @@ -582,7 +582,7 @@
|
|
|
| if (!isPow2) {
|
| bool tiled = NULL != params && params->isTiled();
|
| - if (tiled && !caps.npotTextureTileSupport()) {
|
| + if (tiled && !caps->npotTextureTileSupport()) {
|
| return false;
|
| }
|
| }
|
|
|