| 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 |
| 11 #include "GrDrawTarget.h" | 11 #include "GrDrawTarget.h" |
| 12 #include "GrPathRendering.h" | 12 #include "GrPathRendering.h" |
| 13 #include "GrProgramDesc.h" | 13 #include "GrProgramDesc.h" |
| 14 #include "SkPath.h" | 14 #include "SkPath.h" |
| 15 | 15 |
| 16 class GrContext; | 16 class GrContext; |
| 17 class GrIndexBufferAllocPool; | |
| 18 class GrPath; | 17 class GrPath; |
| 19 class GrPathRange; | 18 class GrPathRange; |
| 20 class GrPathRenderer; | 19 class GrPathRenderer; |
| 21 class GrPathRendererChain; | 20 class GrPathRendererChain; |
| 22 class GrPipeline; | 21 class GrPipeline; |
| 23 class GrPrimitiveProcessor; | 22 class GrPrimitiveProcessor; |
| 24 class GrStencilAttachment; | 23 class GrStencilAttachment; |
| 25 class GrVertexBufferAllocPool; | |
| 26 class GrVertices; | 24 class GrVertices; |
| 27 | 25 |
| 28 class GrGpu : public SkRefCnt { | 26 class GrGpu : public SkRefCnt { |
| 29 public: | 27 public: |
| 30 /** | 28 /** |
| 31 * Create an instance of GrGpu that matches the specified backend. If the re
quested backend is | 29 * Create an instance of GrGpu that matches the specified backend. If the re
quested backend is |
| 32 * not supported (at compile-time or run-time) this returns NULL. The contex
t will not be | 30 * not supported (at compile-time or run-time) this returns NULL. The contex
t will not be |
| 33 * fully constructed and should not be used by GrGpu until after this functi
on returns. | 31 * fully constructed and should not be used by GrGpu until after this functi
on returns. |
| 34 */ | 32 */ |
| 35 static GrGpu* Create(GrBackend, GrBackendContext, GrContext* context); | 33 static GrGpu* Create(GrBackend, GrBackendContext, GrContext* context); |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 int fGpuTrac
eMarkerCount; | 494 int fGpuTrac
eMarkerCount; |
| 497 GrTraceMarkerSet fActiveT
raceMarkers; | 495 GrTraceMarkerSet fActiveT
raceMarkers; |
| 498 GrTraceMarkerSet fStoredT
raceMarkers; | 496 GrTraceMarkerSet fStoredT
raceMarkers; |
| 499 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. | 497 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. |
| 500 GrContext* fContext
; | 498 GrContext* fContext
; |
| 501 | 499 |
| 502 typedef SkRefCnt INHERITED; | 500 typedef SkRefCnt INHERITED; |
| 503 }; | 501 }; |
| 504 | 502 |
| 505 #endif | 503 #endif |
| OLD | NEW |