| 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. | |
| 353 virtual void performFlushWorkaround(); | |
| 354 | |
| 355 /////////////////////////////////////////////////////////////////////////// | 352 /////////////////////////////////////////////////////////////////////////// |
| 356 // Debugging and Stats | 353 // Debugging and Stats |
| 357 | 354 |
| 358 class Stats { | 355 class Stats { |
| 359 public: | 356 public: |
| 360 #if GR_GPU_STATS | 357 #if GR_GPU_STATS |
| 361 Stats() { this->reset(); } | 358 Stats() { this->reset(); } |
| 362 | 359 |
| 363 void reset() { | 360 void reset() { |
| 364 fRenderTargetBinds = 0; | 361 fRenderTargetBinds = 0; |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 ResetTimestamp fResetTi
mestamp; | 571 ResetTimestamp fResetTi
mestamp; |
| 575 uint32_t fResetBi
ts; | 572 uint32_t fResetBi
ts; |
| 576 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. | 573 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. |
| 577 GrContext* fContext
; | 574 GrContext* fContext
; |
| 578 | 575 |
| 579 friend class GrPathRendering; | 576 friend class GrPathRendering; |
| 580 typedef SkRefCnt INHERITED; | 577 typedef SkRefCnt INHERITED; |
| 581 }; | 578 }; |
| 582 | 579 |
| 583 #endif | 580 #endif |
| OLD | NEW |