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

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

Issue 864853002: remove drawType from optState (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: cleaning Created 5 years, 11 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 | « no previous file | src/gpu/GrInOrderDrawBuffer.h » ('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
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 virtual bool copySurface(GrSurface* dst, 359 virtual bool copySurface(GrSurface* dst,
360 GrSurface* src, 360 GrSurface* src,
361 const SkIRect& srcRect, 361 const SkIRect& srcRect,
362 const SkIPoint& dstPoint) = 0; 362 const SkIPoint& dstPoint) = 0;
363 363
364 struct DrawArgs { 364 struct DrawArgs {
365 typedef GrDrawTarget::DrawInfo DrawInfo; 365 typedef GrDrawTarget::DrawInfo DrawInfo;
366 DrawArgs(const GrPrimitiveProcessor* primProc, 366 DrawArgs(const GrPrimitiveProcessor* primProc,
367 const GrOptDrawState* optState, 367 const GrOptDrawState* optState,
368 const GrProgramDesc* desc, 368 const GrProgramDesc* desc,
369 const GrBatchTracker* batchTracker) 369 const GrBatchTracker* batchTracker,
370 DrawType drawType)
370 : fPrimitiveProcessor(primProc) 371 : fPrimitiveProcessor(primProc)
371 , fOptState(optState) 372 , fOptState(optState)
372 , fDesc(desc) 373 , fDesc(desc)
373 , fBatchTracker(batchTracker) { 374 , fBatchTracker(batchTracker)
375 , fDrawType(drawType) {
374 SkASSERT(primProc && optState && desc && batchTracker); 376 SkASSERT(primProc && optState && desc && batchTracker);
375 } 377 }
376 const GrPrimitiveProcessor* fPrimitiveProcessor; 378 const GrPrimitiveProcessor* fPrimitiveProcessor;
377 const GrOptDrawState* fOptState; 379 const GrOptDrawState* fOptState;
378 const GrProgramDesc* fDesc; 380 const GrProgramDesc* fDesc;
379 const GrBatchTracker* fBatchTracker; 381 const GrBatchTracker* fBatchTracker;
382 DrawType fDrawType;
380 }; 383 };
381 384
382 void draw(const DrawArgs&, const GrDrawTarget::DrawInfo&); 385 void draw(const DrawArgs&, const GrDrawTarget::DrawInfo&);
383 386
384 /** None of these params are optional, pointers used just to avoid making co pies. */ 387 /** None of these params are optional, pointers used just to avoid making co pies. */
385 struct StencilPathState { 388 struct StencilPathState {
386 bool fUseHWAA; 389 bool fUseHWAA;
387 GrRenderTarget* fRenderTarget; 390 GrRenderTarget* fRenderTarget;
388 const SkMatrix* fViewMatrix; 391 const SkMatrix* fViewMatrix;
389 const GrStencilSettings* fStencil; 392 const GrStencilSettings* fStencil;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 int fGpuTrac eMarkerCount; 536 int fGpuTrac eMarkerCount;
534 GrTraceMarkerSet fActiveT raceMarkers; 537 GrTraceMarkerSet fActiveT raceMarkers;
535 GrTraceMarkerSet fStoredT raceMarkers; 538 GrTraceMarkerSet fStoredT raceMarkers;
536 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. 539 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu.
537 GrContext* fContext ; 540 GrContext* fContext ;
538 541
539 typedef SkRefCnt INHERITED; 542 typedef SkRefCnt INHERITED;
540 }; 543 };
541 544
542 #endif 545 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrInOrderDrawBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698