Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

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: rebase Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/gpu/gl/GrGLPath.cpp ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // GrGpu overrides 114 // GrGpu overrides
115 virtual void onResetContext(uint32_t resetBits) SK_OVERRIDE; 115 virtual void onResetContext(uint32_t resetBits) SK_OVERRIDE;
116 116
117 virtual GrTexture* onCreateTexture(const GrTextureDesc& desc, 117 virtual GrTexture* onCreateTexture(const GrTextureDesc& desc,
118 const void* srcData, 118 const void* srcData,
119 size_t rowBytes) SK_OVERRIDE; 119 size_t rowBytes) SK_OVERRIDE;
120 virtual GrVertexBuffer* onCreateVertexBuffer(uint32_t size, 120 virtual GrVertexBuffer* onCreateVertexBuffer(uint32_t size,
121 bool dynamic) SK_OVERRIDE; 121 bool dynamic) SK_OVERRIDE;
122 virtual GrIndexBuffer* onCreateIndexBuffer(uint32_t size, 122 virtual GrIndexBuffer* onCreateIndexBuffer(uint32_t size,
123 bool dynamic) SK_OVERRIDE; 123 bool dynamic) SK_OVERRIDE;
124 virtual GrPath* onCreatePath(const SkPath&) SK_OVERRIDE; 124 virtual GrPath* onCreatePath(const SkPath&, const SkStrokeRec&) SK_OVERRIDE;
125 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVER RIDE; 125 virtual GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVER RIDE;
126 virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTarge tDesc&) SK_OVERRIDE; 126 virtual GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTarge tDesc&) SK_OVERRIDE;
127 virtual bool createStencilBufferForRenderTarget(GrRenderTarget* rt, 127 virtual bool createStencilBufferForRenderTarget(GrRenderTarget* rt,
128 int width, 128 int width,
129 int height) SK_OVERRIDE; 129 int height) SK_OVERRIDE;
130 virtual bool attachStencilBufferToRenderTarget( 130 virtual bool attachStencilBufferToRenderTarget(
131 GrStencilBuffer* sb, 131 GrStencilBuffer* sb,
132 GrRenderTarget* rt) SK_OVERRIDE; 132 GrRenderTarget* rt) SK_OVERRIDE;
133 133
134 virtual void onClear(const SkIRect* rect, GrColor color) SK_OVERRIDE; 134 virtual void onClear(const SkIRect* rect, GrColor color) SK_OVERRIDE;
(...skipping 10 matching lines...) Expand all
145 virtual bool onWriteTexturePixels(GrTexture* texture, 145 virtual bool onWriteTexturePixels(GrTexture* texture,
146 int left, int top, int width, int height, 146 int left, int top, int width, int height,
147 GrPixelConfig config, const void* buffer, 147 GrPixelConfig config, const void* buffer,
148 size_t rowBytes) SK_OVERRIDE; 148 size_t rowBytes) SK_OVERRIDE;
149 149
150 virtual void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE; 150 virtual void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE;
151 151
152 virtual void onGpuDraw(const DrawInfo&) SK_OVERRIDE; 152 virtual void onGpuDraw(const DrawInfo&) SK_OVERRIDE;
153 153
154 virtual void onGpuStencilPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; 154 virtual void onGpuStencilPath(const GrPath*, SkPath::FillType) SK_OVERRIDE;
155 virtual void onGpuFillPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; 155 virtual void onGpuDrawPath(const GrPath*, SkPath::FillType) SK_OVERRIDE;
156 156
157 virtual void clearStencil() SK_OVERRIDE; 157 virtual void clearStencil() SK_OVERRIDE;
158 virtual void clearStencilClip(const SkIRect& rect, 158 virtual void clearStencilClip(const SkIRect& rect,
159 bool insideClip) SK_OVERRIDE; 159 bool insideClip) SK_OVERRIDE;
160 virtual bool flushGraphicsState(DrawType, const GrDeviceCoordTexture* dstCop y) SK_OVERRIDE; 160 virtual bool flushGraphicsState(DrawType, const GrDeviceCoordTexture* dstCop y) SK_OVERRIDE;
161 161
162 // binds texture unit in GL 162 // binds texture unit in GL
163 void setTextureUnit(int unitIdx); 163 void setTextureUnit(int unitIdx);
164 164
165 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt es gives the offset 165 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt es gives the offset
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 ///@} 450 ///@}
451 451
452 // we record what stencil format worked last time to hopefully exit early 452 // we record what stencil format worked last time to hopefully exit early
453 // from our loop that tries stencil formats and calls check fb status. 453 // from our loop that tries stencil formats and calls check fb status.
454 int fLastSuccessfulStencilFmtIdx; 454 int fLastSuccessfulStencilFmtIdx;
455 455
456 typedef GrGpu INHERITED; 456 typedef GrGpu INHERITED;
457 }; 457 };
458 458
459 #endif 459 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLPath.cpp ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698