Chromium Code Reviews

Side by Side Diff: src/gpu/gl/GrGpuGL.h

Issue 23440049: Implement stroking a path with nv_path_rendering (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrGpuGL_DEFINED 8 #ifndef GrGpuGL_DEFINED
9 #define GrGpuGL_DEFINED 9 #define GrGpuGL_DEFINED
10 10
(...skipping 99 matching lines...)
110 // GrGpu overrides 110 // GrGpu overrides
111 virtual void onResetContext(uint32_t resetBits) SK_OVERRIDE; 111 virtual void onResetContext(uint32_t resetBits) SK_OVERRIDE;
112 112
113 virtual GrTexture* onCreateTexture(const GrTextureDesc& desc, 113 virtual GrTexture* onCreateTexture(const GrTextureDesc& desc,
114 const void* srcData, 114 const void* srcData,
115 size_t rowBytes) SK_OVERRIDE; 115 size_t rowBytes) SK_OVERRIDE;
116 virtual GrVertexBuffer* onCreateVertexBuffer(uint32_t size, 116 virtual GrVertexBuffer* onCreateVertexBuffer(uint32_t size,
117 bool dynamic) SK_OVERRIDE; 117 bool dynamic) SK_OVERRIDE;
118 virtual GrIndexBuffer* onCreateIndexBuffer(uint32_t size, 118 virtual GrIndexBuffer* onCreateIndexBuffer(uint32_t size,
119 bool dynamic) SK_OVERRIDE; 119 bool dynamic) SK_OVERRIDE;
120 virtual GrPath* onCreatePath(const SkPath&) SK_OVERRIDE; 120 virtual GrPath* onCreatePath(const SkPath&, const SkStrokeRec& stroke) SK_OV ERRIDE;
121 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVER RIDE; 121 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVER RIDE;
122 virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTarge tDesc&) SK_OVERRIDE; 122 virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTarge tDesc&) SK_OVERRIDE;
123 virtual bool createStencilBufferForRenderTarget(GrRenderTarget* rt, 123 virtual bool createStencilBufferForRenderTarget(GrRenderTarget* rt,
124 int width, 124 int width,
125 int height) SK_OVERRIDE; 125 int height) SK_OVERRIDE;
126 virtual bool attachStencilBufferToRenderTarget( 126 virtual bool attachStencilBufferToRenderTarget(
127 GrStencilBuffer* sb, 127 GrStencilBuffer* sb,
128 GrRenderTarget* rt) SK_OVERRIDE; 128 GrRenderTarget* rt) SK_OVERRIDE;
129 129
130 virtual void onClear(const SkIRect* rect, GrColor color) SK_OVERRIDE; 130 virtual void onClear(const SkIRect* rect, GrColor color) SK_OVERRIDE;
(...skipping 10 matching lines...)
141 virtual bool onWriteTexturePixels(GrTexture* texture, 141 virtual bool onWriteTexturePixels(GrTexture* texture,
142 int left, int top, int width, int height, 142 int left, int top, int width, int height,
143 GrPixelConfig config, const void* buffer, 143 GrPixelConfig config, const void* buffer,
144 size_t rowBytes) SK_OVERRIDE; 144 size_t rowBytes) SK_OVERRIDE;
145 145
146 virtual void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE; 146 virtual void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE;
147 147
148 virtual void onGpuDraw(const DrawInfo&) SK_OVERRIDE; 148 virtual void onGpuDraw(const DrawInfo&) SK_OVERRIDE;
149 149
150 virtual void onGpuStencilPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; 150 virtual void onGpuStencilPath(const GrPath*, SkPath::FillType) SK_OVERRIDE;
151 virtual void onGpuFillPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; 151 virtual void onGpuDrawPath(const GrPath*, const SkStrokeRec& stroke, SkPath: :FillType) SK_OVERRIDE;
bsalomon 2013/09/19 18:14:48 Since the GrPath is now specific to the stroking,
Kimmo Kinnunen 2013/10/08 12:15:36 Done.
152 152
153 virtual void clearStencil() SK_OVERRIDE; 153 virtual void clearStencil() SK_OVERRIDE;
154 virtual void clearStencilClip(const SkIRect& rect, 154 virtual void clearStencilClip(const SkIRect& rect,
155 bool insideClip) SK_OVERRIDE; 155 bool insideClip) SK_OVERRIDE;
156 virtual bool flushGraphicsState(DrawType, const GrDeviceCoordTexture* dstCop y) SK_OVERRIDE; 156 virtual bool flushGraphicsState(DrawType, const GrDeviceCoordTexture* dstCop y) SK_OVERRIDE;
157 157
158 // binds texture unit in GL 158 // binds texture unit in GL
159 void setTextureUnit(int unitIdx); 159 void setTextureUnit(int unitIdx);
160 160
161 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt es gives the offset 161 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt es gives the offset
(...skipping 283 matching lines...)
445 ///@} 445 ///@}
446 446
447 // we record what stencil format worked last time to hopefully exit early 447 // we record what stencil format worked last time to hopefully exit early
448 // from our loop that tries stencil formats and calls check fb status. 448 // from our loop that tries stencil formats and calls check fb status.
449 int fLastSuccessfulStencilFmtIdx; 449 int fLastSuccessfulStencilFmtIdx;
450 450
451 typedef GrGpu INHERITED; 451 typedef GrGpu INHERITED;
452 }; 452 };
453 453
454 #endif 454 #endif
OLDNEW
« src/gpu/gl/GrGLPath.cpp ('K') | « src/gpu/gl/GrGLPath.cpp ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine