| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |