| 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 | 297 |
| 298 // Called to perform a surface to surface copy. Fallbacks to issuing a draw
from the src to dst | 298 // Called to perform a surface to surface copy. Fallbacks to issuing a draw
from the src to dst |
| 299 // take place at the GrDrawTarget level and this function implement faster c
opy paths. The rect | 299 // take place at the GrDrawTarget level and this function implement faster c
opy paths. The rect |
| 300 // and point are pre-clipped. The src rect and implied dst rect are guarante
ed to be within the | 300 // and point are pre-clipped. The src rect and implied dst rect are guarante
ed to be within the |
| 301 // src/dst bounds and non-empty. | 301 // src/dst bounds and non-empty. |
| 302 virtual bool copySurface(GrSurface* dst, | 302 virtual bool copySurface(GrSurface* dst, |
| 303 GrSurface* src, | 303 GrSurface* src, |
| 304 const SkIRect& srcRect, | 304 const SkIRect& srcRect, |
| 305 const SkIPoint& dstPoint) = 0; | 305 const SkIPoint& dstPoint) = 0; |
| 306 | 306 |
| 307 // Called before certain draws in order to guarantee coherent results from d
st reads. |
| 308 virtual void xferBarrier(GrXferBarrierType) = 0; |
| 309 |
| 307 struct DrawArgs { | 310 struct DrawArgs { |
| 308 typedef GrDrawTarget::DrawInfo DrawInfo; | 311 typedef GrDrawTarget::DrawInfo DrawInfo; |
| 309 DrawArgs(const GrPrimitiveProcessor* primProc, | 312 DrawArgs(const GrPrimitiveProcessor* primProc, |
| 310 const GrPipeline* pipeline, | 313 const GrPipeline* pipeline, |
| 311 const GrProgramDesc* desc, | 314 const GrProgramDesc* desc, |
| 312 const GrBatchTracker* batchTracker) | 315 const GrBatchTracker* batchTracker) |
| 313 : fPrimitiveProcessor(primProc) | 316 : fPrimitiveProcessor(primProc) |
| 314 , fPipeline(pipeline) | 317 , fPipeline(pipeline) |
| 315 , fDesc(desc) | 318 , fDesc(desc) |
| 316 , fBatchTracker(batchTracker) { | 319 , fBatchTracker(batchTracker) { |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 int fGpuTrac
eMarkerCount; | 526 int fGpuTrac
eMarkerCount; |
| 524 GrTraceMarkerSet fActiveT
raceMarkers; | 527 GrTraceMarkerSet fActiveT
raceMarkers; |
| 525 GrTraceMarkerSet fStoredT
raceMarkers; | 528 GrTraceMarkerSet fStoredT
raceMarkers; |
| 526 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. | 529 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. |
| 527 GrContext* fContext
; | 530 GrContext* fContext
; |
| 528 | 531 |
| 529 typedef SkRefCnt INHERITED; | 532 typedef SkRefCnt INHERITED; |
| 530 }; | 533 }; |
| 531 | 534 |
| 532 #endif | 535 #endif |
| OLD | NEW |