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

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

Issue 13314002: Add support for reading the dst pixel value in an effect. Use in a new effect for the kDarken xfer … (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Revert whitespace/comment changes accidentally made in GrGLProgramDesc.cpp Created 7 years, 8 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/GrGLShaderBuilder.cpp ('k') | src/gpu/gl/GrGpuGL_program.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 8
9 9
10 #ifndef GrGpuGL_DEFINED 10 #ifndef GrGpuGL_DEFINED
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 virtual void setStencilPathSettings(const GrPath&, 129 virtual void setStencilPathSettings(const GrPath&,
130 SkPath::FillType, 130 SkPath::FillType,
131 GrStencilSettings* settings) 131 GrStencilSettings* settings)
132 SK_OVERRIDE; 132 SK_OVERRIDE;
133 virtual void onGpuStencilPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; 133 virtual void onGpuStencilPath(const GrPath*, SkPath::FillType) SK_OVERRIDE;
134 134
135 virtual void clearStencil() SK_OVERRIDE; 135 virtual void clearStencil() SK_OVERRIDE;
136 virtual void clearStencilClip(const GrIRect& rect, 136 virtual void clearStencilClip(const GrIRect& rect,
137 bool insideClip) SK_OVERRIDE; 137 bool insideClip) SK_OVERRIDE;
138 virtual bool flushGraphicsState(DrawType) SK_OVERRIDE; 138 virtual bool flushGraphicsState(DrawType, const GrDeviceCoordTexture* dstCop y) SK_OVERRIDE;
139 139
140 // binds texture unit in GL 140 // binds texture unit in GL
141 void setTextureUnit(int unitIdx); 141 void setTextureUnit(int unitIdx);
142 142
143 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt es gives the offset 143 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt es gives the offset
144 // an into the index buffer. It does not account for drawInfo.startIndex() b ut rather the start 144 // an into the index buffer. It does not account for drawInfo.startIndex() b ut rather the start
145 // index is relative to the returned offset. 145 // index is relative to the returned offset.
146 void setupGeometry(const DrawInfo& info, size_t* indexOffsetInBytes); 146 void setupGeometry(const DrawInfo& info, size_t* indexOffsetInBytes);
147 147
148 // Subclasses should call this to flush the blend state. 148 // Subclasses should call this to flush the blend state.
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 ///@} 425 ///@}
426 426
427 // we record what stencil format worked last time to hopefully exit early 427 // we record what stencil format worked last time to hopefully exit early
428 // from our loop that tries stencil formats and calls check fb status. 428 // from our loop that tries stencil formats and calls check fb status.
429 int fLastSuccessfulStencilFmtIdx; 429 int fLastSuccessfulStencilFmtIdx;
430 430
431 typedef GrGpu INHERITED; 431 typedef GrGpu INHERITED;
432 }; 432 };
433 433
434 #endif 434 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLShaderBuilder.cpp ('k') | src/gpu/gl/GrGpuGL_program.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698