| 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 // Returns a timestamp based on the number of times the context was reset. | 300 // Returns a timestamp based on the number of times the context was reset. |
| 301 // This timestamp can be used to lazily detect when cached 3D context state | 301 // This timestamp can be used to lazily detect when cached 3D context state |
| 302 // is dirty. | 302 // is dirty. |
| 303 ResetTimestamp getResetTimestamp() const { return fResetTimestamp; } | 303 ResetTimestamp getResetTimestamp() const { return fResetTimestamp; } |
| 304 | 304 |
| 305 GrContext::GPUStats* gpuStats() { return &fGPUStats; } | 305 GrContext::GPUStats* gpuStats() { return &fGPUStats; } |
| 306 | 306 |
| 307 virtual void buildProgramDesc(GrProgramDesc*, | 307 virtual void buildProgramDesc(GrProgramDesc*, |
| 308 const GrPrimitiveProcessor&, | 308 const GrPrimitiveProcessor&, |
| 309 const GrPipeline&, | 309 const GrPipeline&, |
| 310 const GrProgramDesc::DescInfo&, | |
| 311 const GrBatchTracker&) const = 0; | 310 const GrBatchTracker&) const = 0; |
| 312 | 311 |
| 313 /** | 312 /** |
| 314 * Called at start and end of gpu trace marking | 313 * Called at start and end of gpu trace marking |
| 315 * GR_CREATE_GPU_TRACE_MARKER(marker_str, target) will automatically call th
ese at the start | 314 * GR_CREATE_GPU_TRACE_MARKER(marker_str, target) will automatically call th
ese at the start |
| 316 * and end of a code block respectively | 315 * and end of a code block respectively |
| 317 */ | 316 */ |
| 318 void addGpuTraceMarker(const GrGpuTraceMarker* marker); | 317 void addGpuTraceMarker(const GrGpuTraceMarker* marker); |
| 319 void removeGpuTraceMarker(const GrGpuTraceMarker* marker); | 318 void removeGpuTraceMarker(const GrGpuTraceMarker* marker); |
| 320 | 319 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 int fGpuTrac
eMarkerCount; | 503 int fGpuTrac
eMarkerCount; |
| 505 GrTraceMarkerSet fActiveT
raceMarkers; | 504 GrTraceMarkerSet fActiveT
raceMarkers; |
| 506 GrTraceMarkerSet fStoredT
raceMarkers; | 505 GrTraceMarkerSet fStoredT
raceMarkers; |
| 507 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. | 506 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. |
| 508 GrContext* fContext
; | 507 GrContext* fContext
; |
| 509 | 508 |
| 510 typedef SkRefCnt INHERITED; | 509 typedef SkRefCnt INHERITED; |
| 511 }; | 510 }; |
| 512 | 511 |
| 513 #endif | 512 #endif |
| OLD | NEW |