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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 , fDesc(desc) { | 338 , fDesc(desc) { |
339 SkASSERT(primProc && pipeline && desc); | 339 SkASSERT(primProc && pipeline && desc); |
340 } | 340 } |
341 const GrPrimitiveProcessor* fPrimitiveProcessor; | 341 const GrPrimitiveProcessor* fPrimitiveProcessor; |
342 const GrPipeline* fPipeline; | 342 const GrPipeline* fPipeline; |
343 const GrProgramDesc* fDesc; | 343 const GrProgramDesc* fDesc; |
344 }; | 344 }; |
345 | 345 |
346 void draw(const DrawArgs&, const GrVertices&); | 346 void draw(const DrawArgs&, const GrVertices&); |
347 | 347 |
| 348 // Called by drawtarget when flushing. Provides a hook for working around an
ARM PLS driver bug. |
| 349 virtual void performFlushWorkaround(); |
| 350 |
348 /////////////////////////////////////////////////////////////////////////// | 351 /////////////////////////////////////////////////////////////////////////// |
349 // Debugging and Stats | 352 // Debugging and Stats |
350 | 353 |
351 class Stats { | 354 class Stats { |
352 public: | 355 public: |
353 #if GR_GPU_STATS | 356 #if GR_GPU_STATS |
354 Stats() { this->reset(); } | 357 Stats() { this->reset(); } |
355 | 358 |
356 void reset() { | 359 void reset() { |
357 fRenderTargetBinds = 0; | 360 fRenderTargetBinds = 0; |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 ResetTimestamp fResetTi
mestamp; | 570 ResetTimestamp fResetTi
mestamp; |
568 uint32_t fResetBi
ts; | 571 uint32_t fResetBi
ts; |
569 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. | 572 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. |
570 GrContext* fContext
; | 573 GrContext* fContext
; |
571 | 574 |
572 friend class GrPathRendering; | 575 friend class GrPathRendering; |
573 typedef SkRefCnt INHERITED; | 576 typedef SkRefCnt INHERITED; |
574 }; | 577 }; |
575 | 578 |
576 #endif | 579 #endif |
OLD | NEW |