Chromium Code Reviews| 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 // Inserts a boundary between render passes that touch the same pixels. Some blending extensions | |
| 308 // require this in order to guarantee coherent results. | |
| 309 virtual void blendBarrier() = 0; | |
|
Mark Kilgard
2015/04/02 23:02:38
seems like you could just provide a no-op implemen
| |
| 310 | |
| 307 struct DrawArgs { | 311 struct DrawArgs { |
| 308 typedef GrDrawTarget::DrawInfo DrawInfo; | 312 typedef GrDrawTarget::DrawInfo DrawInfo; |
| 309 DrawArgs(const GrPrimitiveProcessor* primProc, | 313 DrawArgs(const GrPrimitiveProcessor* primProc, |
| 310 const GrPipeline* pipeline, | 314 const GrPipeline* pipeline, |
| 311 const GrProgramDesc* desc, | 315 const GrProgramDesc* desc, |
| 312 const GrBatchTracker* batchTracker) | 316 const GrBatchTracker* batchTracker) |
| 313 : fPrimitiveProcessor(primProc) | 317 : fPrimitiveProcessor(primProc) |
| 314 , fPipeline(pipeline) | 318 , fPipeline(pipeline) |
| 315 , fDesc(desc) | 319 , fDesc(desc) |
| 316 , fBatchTracker(batchTracker) { | 320 , fBatchTracker(batchTracker) { |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 519 int fGpuTrac eMarkerCount; | 523 int fGpuTrac eMarkerCount; |
| 520 GrTraceMarkerSet fActiveT raceMarkers; | 524 GrTraceMarkerSet fActiveT raceMarkers; |
| 521 GrTraceMarkerSet fStoredT raceMarkers; | 525 GrTraceMarkerSet fStoredT raceMarkers; |
| 522 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. | 526 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. |
| 523 GrContext* fContext ; | 527 GrContext* fContext ; |
| 524 | 528 |
| 525 typedef SkRefCnt INHERITED; | 529 typedef SkRefCnt INHERITED; |
| 526 }; | 530 }; |
| 527 | 531 |
| 528 #endif | 532 #endif |
| OLD | NEW |