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

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

Issue 174123003: Add hooks for GL_EXT_debug_marker in gpu (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 10 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
« no previous file with comments | « src/gpu/gl/GrGLNoOpInterface.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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 virtual void onGpuDraw(const DrawInfo&) SK_OVERRIDE; 155 virtual void onGpuDraw(const DrawInfo&) SK_OVERRIDE;
156 156
157 virtual void onGpuStencilPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; 157 virtual void onGpuStencilPath(const GrPath*, SkPath::FillType) SK_OVERRIDE;
158 virtual void onGpuDrawPath(const GrPath*, SkPath::FillType) SK_OVERRIDE; 158 virtual void onGpuDrawPath(const GrPath*, SkPath::FillType) SK_OVERRIDE;
159 159
160 virtual void clearStencil() SK_OVERRIDE; 160 virtual void clearStencil() SK_OVERRIDE;
161 virtual void clearStencilClip(const SkIRect& rect, 161 virtual void clearStencilClip(const SkIRect& rect,
162 bool insideClip) SK_OVERRIDE; 162 bool insideClip) SK_OVERRIDE;
163 virtual bool flushGraphicsState(DrawType, const GrDeviceCoordTexture* dstCop y) SK_OVERRIDE; 163 virtual bool flushGraphicsState(DrawType, const GrDeviceCoordTexture* dstCop y) SK_OVERRIDE;
164 164
165 // GrDrawTarget ovverides
166 virtual void onInstantGpuTraceEvent(const char* marker) SK_OVERRIDE;
167 virtual void onPushGpuTraceEvent(const char* marker) SK_OVERRIDE;
168 virtual void onPopGpuTraceEvent() SK_OVERRIDE;
169
170
165 // binds texture unit in GL 171 // binds texture unit in GL
166 void setTextureUnit(int unitIdx); 172 void setTextureUnit(int unitIdx);
167 173
168 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt es gives the offset 174 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt es gives the offset
169 // an into the index buffer. It does not account for drawInfo.startIndex() b ut rather the start 175 // an into the index buffer. It does not account for drawInfo.startIndex() b ut rather the start
170 // index is relative to the returned offset. 176 // index is relative to the returned offset.
171 void setupGeometry(const DrawInfo& info, size_t* indexOffsetInBytes); 177 void setupGeometry(const DrawInfo& info, size_t* indexOffsetInBytes);
172 178
173 // Subclasses should call this to flush the blend state. 179 // Subclasses should call this to flush the blend state.
174 // The params should be the final coefficients to apply 180 // The params should be the final coefficients to apply
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 ///@} 455 ///@}
450 456
451 // we record what stencil format worked last time to hopefully exit early 457 // we record what stencil format worked last time to hopefully exit early
452 // from our loop that tries stencil formats and calls check fb status. 458 // from our loop that tries stencil formats and calls check fb status.
453 int fLastSuccessfulStencilFmtIdx; 459 int fLastSuccessfulStencilFmtIdx;
454 460
455 typedef GrGpu INHERITED; 461 typedef GrGpu INHERITED;
456 }; 462 };
457 463
458 #endif 464 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLNoOpInterface.cpp ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698