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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 , fDesc(desc) { | 342 , fDesc(desc) { |
343 SkASSERT(primProc && pipeline && desc); | 343 SkASSERT(primProc && pipeline && desc); |
344 } | 344 } |
345 const GrPrimitiveProcessor* fPrimitiveProcessor; | 345 const GrPrimitiveProcessor* fPrimitiveProcessor; |
346 const GrPipeline* fPipeline; | 346 const GrPipeline* fPipeline; |
347 const GrProgramDesc* fDesc; | 347 const GrProgramDesc* fDesc; |
348 }; | 348 }; |
349 | 349 |
350 void draw(const DrawArgs&, const GrVertices&); | 350 void draw(const DrawArgs&, const GrVertices&); |
351 | 351 |
352 // Called by drawtarget when flushing. Provides a hook for working around an
ARM PLS driver bug. | 352 // Called by drawtarget when flushing. |
353 virtual void performFlushWorkaround(); | 353 // Provides a hook for post-flush actions (e.g. PLS reset and Vulkan command
buffer submits). |
| 354 virtual void finishDrawTarget() {} |
354 | 355 |
355 /////////////////////////////////////////////////////////////////////////// | 356 /////////////////////////////////////////////////////////////////////////// |
356 // Debugging and Stats | 357 // Debugging and Stats |
357 | 358 |
358 class Stats { | 359 class Stats { |
359 public: | 360 public: |
360 #if GR_GPU_STATS | 361 #if GR_GPU_STATS |
361 Stats() { this->reset(); } | 362 Stats() { this->reset(); } |
362 | 363 |
363 void reset() { | 364 void reset() { |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 ResetTimestamp fResetTi
mestamp; | 575 ResetTimestamp fResetTi
mestamp; |
575 uint32_t fResetBi
ts; | 576 uint32_t fResetBi
ts; |
576 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. | 577 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. |
577 GrContext* fContext
; | 578 GrContext* fContext
; |
578 | 579 |
579 friend class GrPathRendering; | 580 friend class GrPathRendering; |
580 typedef SkRefCnt INHERITED; | 581 typedef SkRefCnt INHERITED; |
581 }; | 582 }; |
582 | 583 |
583 #endif | 584 #endif |
OLD | NEW |