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

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

Issue 1323823003: Remove GrGpuTraceMarker hooks until we rethink the design (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: compiler warning Created 5 years, 3 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/GrTracing.h ('k') | src/gpu/gl/GrGLGpu.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 GrGLGpu_DEFINED 8 #ifndef GrGLGpu_DEFINED
9 #define GrGLGpu_DEFINED 9 #define GrGLGpu_DEFINED
10 10
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override; 148 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override;
149 149
150 bool onCopySurface(GrSurface* dst, 150 bool onCopySurface(GrSurface* dst,
151 GrSurface* src, 151 GrSurface* src,
152 const SkIRect& srcRect, 152 const SkIRect& srcRect,
153 const SkIPoint& dstPoint) override; 153 const SkIPoint& dstPoint) override;
154 154
155 void clearStencil(GrRenderTarget*) override; 155 void clearStencil(GrRenderTarget*) override;
156 156
157 // GrDrawTarget overrides
158 void didAddGpuTraceMarker() override;
159 void didRemoveGpuTraceMarker() override;
160
161 // binds texture unit in GL 157 // binds texture unit in GL
162 void setTextureUnit(int unitIdx); 158 void setTextureUnit(int unitIdx);
163 159
164 // Flushes state from GrPipeline to GL. Returns false if the state couldn't be set. 160 // Flushes state from GrPipeline to GL. Returns false if the state couldn't be set.
165 bool flushGLState(const DrawArgs&); 161 bool flushGLState(const DrawArgs&);
166 162
167 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt es gives the offset 163 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt es gives the offset
168 // an into the index buffer. It does not account for vertices.startIndex() b ut rather the start 164 // an into the index buffer. It does not account for vertices.startIndex() b ut rather the start
169 // index is relative to the returned offset. 165 // index is relative to the returned offset.
170 void setupGeometry(const GrPrimitiveProcessor&, 166 void setupGeometry(const GrPrimitiveProcessor&,
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 491
496 // we record what stencil format worked last time to hopefully exit early 492 // we record what stencil format worked last time to hopefully exit early
497 // from our loop that tries stencil formats and calls check fb status. 493 // from our loop that tries stencil formats and calls check fb status.
498 int fLastSuccessfulStencilFmtIdx; 494 int fLastSuccessfulStencilFmtIdx;
499 495
500 typedef GrGpu INHERITED; 496 typedef GrGpu INHERITED;
501 friend class GrGLPathRendering; // For accessing setTextureUnit. 497 friend class GrGLPathRendering; // For accessing setTextureUnit.
502 }; 498 };
503 499
504 #endif 500 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrTracing.h ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698