| Index: src/gpu/gl/GrGLGpu.h
|
| diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h
|
| index 986045ac9880204d031967b418930b7496b2b038..3323ece07960c14179ac165fdc0e1b90b68668a9 100644
|
| --- a/src/gpu/gl/GrGLGpu.h
|
| +++ b/src/gpu/gl/GrGLGpu.h
|
| @@ -101,6 +101,11 @@
|
| const SkIRect& srcRect,
|
| const SkIPoint& dstPoint) override;
|
|
|
| + bool canCopySurface(const GrSurface* dst,
|
| + const GrSurface* src,
|
| + const SkIRect& srcRect,
|
| + const SkIPoint& dstPoint) override;
|
| +
|
| void xferBarrier(GrRenderTarget*, GrXferBarrierType) override;
|
|
|
| void buildProgramDesc(GrProgramDesc*,
|
| @@ -178,19 +183,6 @@
|
| // Subclasses should call this to flush the blend state.
|
| void flushBlend(const GrXferProcessor::BlendInfo& blendInfo);
|
|
|
| - void copySurfaceAsDraw(GrSurface* dst,
|
| - GrSurface* src,
|
| - const SkIRect& srcRect,
|
| - const SkIPoint& dstPoint);
|
| - void copySurfaceAsCopyTexSubImage(GrSurface* dst,
|
| - GrSurface* src,
|
| - const SkIRect& srcRect,
|
| - const SkIPoint& dstPoint);
|
| - bool copySurfaceAsBlitFramebuffer(GrSurface* dst,
|
| - GrSurface* src,
|
| - const SkIRect& srcRect,
|
| - const SkIPoint& dstPoint);
|
| -
|
| bool hasExtension(const char* ext) const { return fGLContext.hasExtension(ext); }
|
|
|
| static bool BlendCoeffReferencesConstant(GrBlendCoeff coeff);
|
| @@ -201,7 +193,7 @@
|
| ~ProgramCache();
|
|
|
| void abandon();
|
| - GrGLProgram* refProgram(const DrawArgs&);
|
| + GrGLProgram* getProgram(const DrawArgs&);
|
|
|
| private:
|
| enum {
|
| @@ -302,12 +294,11 @@
|
|
|
| void unbindTextureFromFBO(GrGLenum fboTarget);
|
|
|
| - void createCopyProgram();
|
| -
|
| GrGLContext fGLContext;
|
|
|
| // GL program-related state
|
| ProgramCache* fProgramCache;
|
| + SkAutoTUnref<GrGLProgram> fCurrentProgram;
|
|
|
| ///////////////////////////////////////////////////////////////////////////
|
| ///@name Caching of GL State
|
| @@ -429,17 +420,7 @@
|
| const GrGLVertexBuffer* vbuffer,
|
| const GrGLIndexBuffer* ibuffer);
|
|
|
| - /** Variants of the above that takes GL buffer IDs. Note that 0 does not imply that a
|
| - buffer won't be bound. The "default buffer" will be bound, which is used for client-side
|
| - array rendering. */
|
| - GrGLAttribArrayState* bindArrayAndBufferToDraw(GrGLGpu* gpu, GrGLuint vbufferID);
|
| - GrGLAttribArrayState* bindArrayAndBuffersToDraw(GrGLGpu* gpu,
|
| - GrGLuint vbufferID,
|
| - GrGLuint ibufferID);
|
| -
|
| private:
|
| - GrGLAttribArrayState* internalBind(GrGLGpu* gpu, GrGLuint vbufferID, GrGLuint* ibufferID);
|
| -
|
| GrGLuint fBoundVertexArrayID;
|
| GrGLuint fBoundVertexBufferID;
|
| bool fBoundVertexArrayIDIsValid;
|
| @@ -473,15 +454,6 @@
|
| }
|
| } fHWBlendState;
|
|
|
| - /** IDs for copy surface program. */
|
| - struct {
|
| - GrGLuint fProgram;
|
| - GrGLint fTextureUniform;
|
| - GrGLint fTexCoordXformUniform;
|
| - GrGLint fPosXformUniform;
|
| - GrGLuint fArrayBuffer;
|
| - } fCopyProgram;
|
| -
|
| TriState fMSAAEnabled;
|
|
|
| GrStencilSettings fHWStencilSettings;
|
|
|