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

Side by Side Diff: src/gpu/GrInOrderDrawBuffer.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/GrDrawTargetCaps.h ('k') | src/gpu/GrInOrderDrawBuffer.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 GrInOrderDrawBuffer_DEFINED 8 #ifndef GrInOrderDrawBuffer_DEFINED
9 #define GrInOrderDrawBuffer_DEFINED 9 #define GrInOrderDrawBuffer_DEFINED
10 10
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 GrSurface* src, 161 GrSurface* src,
162 const SkIRect& srcRect, 162 const SkIRect& srcRect,
163 const SkIPoint& dstPoint) SK_OVERRIDE; 163 const SkIPoint& dstPoint) SK_OVERRIDE;
164 virtual bool onCanCopySurface(GrSurface* dst, 164 virtual bool onCanCopySurface(GrSurface* dst,
165 GrSurface* src, 165 GrSurface* src,
166 const SkIRect& srcRect, 166 const SkIRect& srcRect,
167 const SkIPoint& dstPoint) SK_OVERRIDE; 167 const SkIPoint& dstPoint) SK_OVERRIDE;
168 168
169 bool quickInsideClip(const SkRect& devBounds); 169 bool quickInsideClip(const SkRect& devBounds);
170 170
171 virtual void onInstantGpuTraceEvent(const char* marker) SK_OVERRIDE;
172 virtual void onPushGpuTraceEvent(const char* marker) SK_OVERRIDE;
173 virtual void onPopGpuTraceEvent() SK_OVERRIDE;
174
175
171 // Attempts to concat instances from info onto the previous draw. info must represent an 176 // Attempts to concat instances from info onto the previous draw. info must represent an
172 // instanced draw. The caller must have already recorded a new draw state an d clip if necessary. 177 // instanced draw. The caller must have already recorded a new draw state an d clip if necessary.
173 int concatInstancedDraw(const DrawInfo& info); 178 int concatInstancedDraw(const DrawInfo& info);
174 179
175 // we lazily record state and clip changes in order to skip clips and states that have no 180 // we lazily record state and clip changes in order to skip clips and states that have no
176 // effect. 181 // effect.
177 bool needsNewState() const; 182 bool needsNewState() const;
178 bool needsNewClip() const; 183 bool needsNewClip() const;
179 184
180 // these functions record a command 185 // these functions record a command
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 245
241 virtual bool isIssued(uint32_t drawID) { return drawID != fDrawID; } 246 virtual bool isIssued(uint32_t drawID) { return drawID != fDrawID; }
242 247
243 bool fFlushing; 248 bool fFlushing;
244 uint32_t fDrawID; 249 uint32_t fDrawID;
245 250
246 typedef GrDrawTarget INHERITED; 251 typedef GrDrawTarget INHERITED;
247 }; 252 };
248 253
249 #endif 254 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawTargetCaps.h ('k') | src/gpu/GrInOrderDrawBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698