From 64aef2bacd1f5c25ffd9347aabd6265c9b60c0f4 Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Mon, 11 Jun 2012 15:36:13 +0000 Subject: Towards NV path rendering Review URL: http://codereview.appspot.com/6302049/ git-svn-id: http://skia.googlecode.com/svn/trunk@4219 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/gl/GrGpuGL.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/gpu/gl/GrGpuGL.h') diff --git a/src/gpu/gl/GrGpuGL.h b/src/gpu/gl/GrGpuGL.h index 290617099d..51e49ec1ec 100644 --- a/src/gpu/gl/GrGpuGL.h +++ b/src/gpu/gl/GrGpuGL.h @@ -67,6 +67,7 @@ protected: bool dynamic) SK_OVERRIDE; virtual GrIndexBuffer* onCreateIndexBuffer(uint32_t size, bool dynamic) SK_OVERRIDE; + virtual GrPath* onCreatePath(const SkPath&) SK_OVERRIDE; virtual GrTexture* onCreatePlatformTexture( const GrPlatformTextureDesc& desc) SK_OVERRIDE; virtual GrRenderTarget* onCreatePlatformRenderTarget( @@ -106,13 +107,14 @@ protected: virtual void onGpuDrawNonIndexed(GrPrimitiveType type, uint32_t vertexCount, uint32_t numVertices) SK_OVERRIDE; + virtual void onGpuStencilPath(const GrPath&, GrPathFill) SK_OVERRIDE; virtual void enableScissoring(const GrIRect& rect) SK_OVERRIDE; virtual void disableScissor() SK_OVERRIDE; virtual void clearStencil() SK_OVERRIDE; virtual void clearStencilClip(const GrIRect& rect, bool insideClip) SK_OVERRIDE; - virtual bool flushGraphicsState(GrPrimitiveType type) SK_OVERRIDE; + virtual bool flushGraphicsState(DrawType) SK_OVERRIDE; virtual void setupGeometry(int* startVertex, int* startIndex, int vertexCount, @@ -135,7 +137,7 @@ private: // The params should be the final coeffecients to apply // (after any blending optimizations or dual source blending considerations // have been accounted for). - void flushBlend(GrPrimitiveType type, + void flushBlend(bool isLines, GrBlendCoeff srcCoeff, GrBlendCoeff dstCoeff); @@ -233,7 +235,7 @@ private: static void DeleteProgram(const GrGLInterface* gl, CachedData* programData); - void buildProgram(GrPrimitiveType typeBlend, + void buildProgram(bool isPoints, BlendOptFlags blendOpts, GrBlendCoeff dstCoeff, GrCustomStage** customStages); @@ -261,7 +263,7 @@ private: // NULL means whole target. Can be an empty rect. void flushRenderTarget(const GrIRect* bound); void flushStencil(); - void flushAAState(GrPrimitiveType type); + void flushAAState(bool isLines); bool configToGLFormats(GrPixelConfig config, bool getSizedInternal, -- cgit v1.2.3