| Index: src/gpu/gl/GrGpuGL.cpp
|
| diff --git a/src/gpu/gl/GrGpuGL.cpp b/src/gpu/gl/GrGpuGL.cpp
|
| index be385110c9ab18999f044d750619f9f825df0d1c..8be1118d64839e2f2bb687cdb2709360e8470b04 100644
|
| --- a/src/gpu/gl/GrGpuGL.cpp
|
| +++ b/src/gpu/gl/GrGpuGL.cpp
|
| @@ -9,7 +9,9 @@
|
| #include "GrGpuGL.h"
|
| #include "GrGLStencilBuffer.h"
|
| #include "GrOptDrawState.h"
|
| +#include "GrSurfacePriv.h"
|
| #include "GrTemplates.h"
|
| +#include "GrTexturePriv.h"
|
| #include "GrTypes.h"
|
| #include "SkStrokeRec.h"
|
| #include "SkTemplates.h"
|
| @@ -493,7 +495,7 @@ bool GrGpuGL::onWriteTexturePixels(GrTexture* texture,
|
| }
|
|
|
| if (success) {
|
| - texture->impl()->dirtyMipMaps(true);
|
| + texture->texturePriv().dirtyMipMaps(true);
|
| return true;
|
| }
|
|
|
| @@ -1731,7 +1733,7 @@ void GrGpuGL::flushRenderTarget(GrGLRenderTarget* target, const SkIRect* bound)
|
|
|
| GrTexture *texture = target->asTexture();
|
| if (texture) {
|
| - texture->impl()->dirtyMipMaps(true);
|
| + texture->texturePriv().dirtyMipMaps(true);
|
| }
|
| }
|
|
|
| @@ -2053,9 +2055,9 @@ void GrGpuGL::bindTexture(int unitIdx, const GrTextureParams& params, GrGLTextur
|
| newTexParams.fMagFilter = glMagFilterModes[filterMode];
|
|
|
| if (GrTextureParams::kMipMap_FilterMode == filterMode &&
|
| - texture->mipMapsAreDirty() && !GrPixelConfigIsCompressed(texture->config())) {
|
| + texture->texturePriv().mipMapsAreDirty() && !GrPixelConfigIsCompressed(texture->config())) {
|
| GL_CALL(GenerateMipmap(GR_GL_TEXTURE_2D));
|
| - texture->dirtyMipMaps(false);
|
| + texture->texturePriv().dirtyMipMaps(false);
|
| }
|
|
|
| newTexParams.fWrapS = tile_to_gl_wrap(params.getTileModeX());
|
| @@ -2469,7 +2471,7 @@ bool GrGpuGL::onCopySurface(GrSurface* dst,
|
| SkIRect dstRect = SkIRect::MakeXYWH(dstPoint.fX, dstPoint.fY,
|
| srcRect.width(), srcRect.height());
|
| bool selfOverlap = false;
|
| - if (dst->isSameAs(src)) {
|
| + if (dst->surfacePriv().isSameAs(src)) {
|
| selfOverlap = SkIRect::IntersectsNoEmptyCheck(dstRect, srcRect);
|
| }
|
|
|
| @@ -2547,7 +2549,7 @@ bool GrGpuGL::onCanCopySurface(GrSurface* dst,
|
| return true;
|
| }
|
| if (can_blit_framebuffer(dst, src, this)) {
|
| - if (dst->isSameAs(src)) {
|
| + if (dst->surfacePriv().isSameAs(src)) {
|
| SkIRect dstRect = SkIRect::MakeXYWH(dstPoint.fX, dstPoint.fY,
|
| srcRect.width(), srcRect.height());
|
| if(!SkIRect::IntersectsNoEmptyCheck(dstRect, srcRect)) {
|
|
|