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