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

Side by Side Diff: src/gpu/GrInOrderDrawBuffer.h

Issue 709003006: cleanup friends in GrGpu (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanup_geometry_handling
Patch Set: Created 6 years, 1 month 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/GrGpu.cpp ('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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 void** vertices) SK_OVERRIDE; 276 void** vertices) SK_OVERRIDE;
277 virtual bool onReserveIndexSpace(int indexCount, 277 virtual bool onReserveIndexSpace(int indexCount,
278 void** indices) SK_OVERRIDE; 278 void** indices) SK_OVERRIDE;
279 virtual void releaseReservedVertexSpace() SK_OVERRIDE; 279 virtual void releaseReservedVertexSpace() SK_OVERRIDE;
280 virtual void releaseReservedIndexSpace() SK_OVERRIDE; 280 virtual void releaseReservedIndexSpace() SK_OVERRIDE;
281 virtual void geometrySourceWillPush() SK_OVERRIDE; 281 virtual void geometrySourceWillPush() SK_OVERRIDE;
282 virtual void geometrySourceWillPop(const GeometrySrcState& restoredState) SK _OVERRIDE; 282 virtual void geometrySourceWillPop(const GeometrySrcState& restoredState) SK _OVERRIDE;
283 virtual void willReserveVertexAndIndexSpace(int vertexCount, 283 virtual void willReserveVertexAndIndexSpace(int vertexCount,
284 int indexCount) SK_OVERRIDE; 284 int indexCount) SK_OVERRIDE;
285 285
286 virtual void didAddGpuTraceMarker() SK_OVERRIDE {}
287 virtual void didRemoveGpuTraceMarker() SK_OVERRIDE {}
288
289 // Attempts to concat instances from info onto the previous draw. info must represent an 286 // Attempts to concat instances from info onto the previous draw. info must represent an
290 // instanced draw. The caller must have already recorded a new draw state an d clip if necessary. 287 // instanced draw. The caller must have already recorded a new draw state an d clip if necessary.
291 int concatInstancedDraw(const DrawInfo& info, const GrClipMaskManager::Sciss orState&); 288 int concatInstancedDraw(const DrawInfo& info, const GrClipMaskManager::Sciss orState&);
292 289
293 // Determines whether the current draw operation requieres a new drawstate a nd if so records it. 290 // Determines whether the current draw operation requieres a new drawstate a nd if so records it.
294 void recordStateIfNecessary(); 291 void recordStateIfNecessary();
295 // We lazily record clip changes in order to skip clips that have no effect. 292 // We lazily record clip changes in order to skip clips that have no effect.
296 void recordClipIfNecessary(); 293 void recordClipIfNecessary();
297 // Records any trace markers for a command after adding it to the buffer. 294 // Records any trace markers for a command after adding it to the buffer.
298 void recordTraceMarkersIfNecessary(); 295 void recordTraceMarkersIfNecessary();
(...skipping 28 matching lines...) Expand all
327 typedef SkSTArray<kGeoPoolStatePreAllocCnt, GeometryPoolState> GeoPoolStateS tack; 324 typedef SkSTArray<kGeoPoolStatePreAllocCnt, GeometryPoolState> GeoPoolStateS tack;
328 325
329 GeoPoolStateStack fGeoPoolStateStack; 326 GeoPoolStateStack fGeoPoolStateStack;
330 bool fFlushing; 327 bool fFlushing;
331 uint32_t fDrawID; 328 uint32_t fDrawID;
332 329
333 typedef GrClipTarget INHERITED; 330 typedef GrClipTarget INHERITED;
334 }; 331 };
335 332
336 #endif 333 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/GrInOrderDrawBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698