'../include/gpu/SkGpuCanvas.h',
'../include/gpu/SkGpuDevice.h',
'../include/gpu/SkGr.h',
- '../include/gpu/SkGrPixelRef.h',
+ '../include/gpu/SkGrTexturePixelRef.h',
'../include/gpu/gl/SkGLContext.h',
'../include/gpu/gl/SkMesaGLContext.h',
'../src/gpu/SkGpuDevice.cpp',
'../src/gpu/SkGr.cpp',
'../src/gpu/SkGrFontScaler.cpp',
- '../src/gpu/SkGrPixelRef.cpp',
+ '../src/gpu/SkGrTexturePixelRef.cpp',
'../src/gpu/gl/SkGLContext.cpp',
'../src/gpu/gl/SkNullGLContext.cpp',
#include "GrDefaultTextContext.h"
#include "GrTextContext.h"
-#include "SkGrPixelRef.h"
+#include "SkGrTexturePixelRef.h"
#include "SkColorFilter.h"
#include "SkDrawProcs.h"
// are ensuring that both objects will live as long as the pixel ref.
SkPixelRef* pr;
if (fTexture) {
- pr = new SkGrPixelRef(fTexture);
+ pr = new SkGrTexturePixelRef(fTexture);
} else {
- pr = new SkGrPixelRef(fRenderTarget);
+ pr = new SkGrRenderTargetPixelRef(fRenderTarget);
}
this->setPixelRef(pr, 0)->unref();
GrAssert(NULL != fRenderTarget);
// wrap the bitmap with a pixelref to expose our texture
- SkGrPixelRef* pr = new SkGrPixelRef(fTexture);
+ SkGrTexturePixelRef* pr = new SkGrTexturePixelRef(fTexture);
this->setPixelRef(pr, 0)->unref();
} else {
GrPrintf("--- failed to create gpu-offscreen [%d %d]\n",
SkIntToScalar(src.height()));
GrTexture* resultTexture = filter_texture(fContext, texture, filter, rect);
if (resultTexture) {
- result->setPixelRef(new SkGrPixelRef(resultTexture))->unref();
+ result->setPixelRef(new SkGrTexturePixelRef(resultTexture))->unref();
resultTexture->unref();
}
return true;