/**
* Return the native ID or handle to the texture, depending on the
- * platform. e.g. on opengl, return the texture ID.
+ * platform. e.g. on OpenGL, return the texture ID.
*/
- virtual intptr_t getTextureHandle() const = 0;
+ virtual GrBackendObject getTextureHandle() const = 0;
/**
* Call this when the state of the native API texture object is
GrGLuint textureFBOID() const { return fTexFBOID; }
// override of GrRenderTarget
- virtual intptr_t getRenderTargetHandle() const {
+ virtual GrBackendObject getRenderTargetHandle() const {
return this->renderFBOID();
}
- virtual intptr_t getRenderTargetResolvedHandle() const {
+ virtual GrBackendObject getRenderTargetResolvedHandle() const {
return this->textureFBOID();
}
virtual ResolveType getResolveType() const {
INHERITED::onAbandon();
}
-intptr_t GrGLTexture::getTextureHandle() const {
+GrBackendObject GrGLTexture::getTextureHandle() const {
return fTexIDObj->id();
}
virtual ~GrGLTexture() { this->release(); }
- virtual intptr_t getTextureHandle() const SK_OVERRIDE;
+ virtual GrBackendObject getTextureHandle() const SK_OVERRIDE;
virtual void invalidateCachedState() SK_OVERRIDE { fTexParams.invalidate(); }