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

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

Issue 1127273007: Iterate over instanced draws in GrGpu rather than above GrBatchTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove dead code Created 5 years, 7 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/GrBatch.cpp ('k') | src/gpu/GrGpu.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 GrGpu_DEFINED 8 #ifndef GrGpu_DEFINED
9 #define GrGpu_DEFINED 9 #define GrGpu_DEFINED
10 10
11 #include "GrDrawTarget.h" 11 #include "GrDrawTarget.h"
12 #include "GrPathRendering.h" 12 #include "GrPathRendering.h"
13 #include "GrProgramDesc.h" 13 #include "GrProgramDesc.h"
14 #include "SkPath.h" 14 #include "SkPath.h"
15 15
16 class GrContext; 16 class GrContext;
17 class GrNonInstancedVertices;
17 class GrPath; 18 class GrPath;
18 class GrPathRange; 19 class GrPathRange;
19 class GrPathRenderer; 20 class GrPathRenderer;
20 class GrPathRendererChain; 21 class GrPathRendererChain;
21 class GrPipeline; 22 class GrPipeline;
22 class GrPrimitiveProcessor; 23 class GrPrimitiveProcessor;
23 class GrStencilAttachment; 24 class GrStencilAttachment;
24 class GrVertices; 25 class GrVertices;
25 26
26 class GrGpu : public SkRefCnt { 27 class GrGpu : public SkRefCnt {
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 // overridden by backend-specific derived class to perform the clear. 427 // overridden by backend-specific derived class to perform the clear.
427 virtual void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, 428 virtual void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color,
428 bool canIgnoreRect) = 0; 429 bool canIgnoreRect) = 0;
429 430
430 431
431 // Overridden by backend specific classes to perform a clear of the stencil clip bits. This is 432 // Overridden by backend specific classes to perform a clear of the stencil clip bits. This is
432 // ONLY used by the the clip target 433 // ONLY used by the the clip target
433 virtual void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool i nsideClip) = 0; 434 virtual void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool i nsideClip) = 0;
434 435
435 // overridden by backend-specific derived class to perform the draw call. 436 // overridden by backend-specific derived class to perform the draw call.
436 virtual void onDraw(const DrawArgs&, const GrVertices&) = 0; 437 virtual void onDraw(const DrawArgs&, const GrNonInstancedVertices&) = 0;
437 virtual void onStencilPath(const GrPath*, const StencilPathState&) = 0; 438 virtual void onStencilPath(const GrPath*, const StencilPathState&) = 0;
438 439
439 virtual void onDrawPath(const DrawArgs&, const GrPath*, const GrStencilSetti ngs&) = 0; 440 virtual void onDrawPath(const DrawArgs&, const GrPath*, const GrStencilSetti ngs&) = 0;
440 virtual void onDrawPaths(const DrawArgs&, 441 virtual void onDrawPaths(const DrawArgs&,
441 const GrPathRange*, 442 const GrPathRange*,
442 const void* indices, 443 const void* indices,
443 GrDrawTarget::PathIndexType, 444 GrDrawTarget::PathIndexType,
444 const float transformValues[], 445 const float transformValues[],
445 GrDrawTarget::PathTransformType, 446 GrDrawTarget::PathTransformType,
446 int count, 447 int count,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 int fGpuTrac eMarkerCount; 495 int fGpuTrac eMarkerCount;
495 GrTraceMarkerSet fActiveT raceMarkers; 496 GrTraceMarkerSet fActiveT raceMarkers;
496 GrTraceMarkerSet fStoredT raceMarkers; 497 GrTraceMarkerSet fStoredT raceMarkers;
497 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. 498 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu.
498 GrContext* fContext ; 499 GrContext* fContext ;
499 500
500 typedef SkRefCnt INHERITED; 501 typedef SkRefCnt INHERITED;
501 }; 502 };
502 503
503 #endif 504 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrBatch.cpp ('k') | src/gpu/GrGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698