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 18 matching lines...) Expand all Loading... |
29 /** | 29 /** |
30 * Create an instance of GrGpu that matches the specified backend. If the re
quested backend is | 30 * Create an instance of GrGpu that matches the specified backend. If the re
quested backend is |
31 * not supported (at compile-time or run-time) this returns NULL. The contex
t will not be | 31 * not supported (at compile-time or run-time) this returns NULL. The contex
t will not be |
32 * fully constructed and should not be used by GrGpu until after this functi
on returns. | 32 * fully constructed and should not be used by GrGpu until after this functi
on returns. |
33 */ | 33 */ |
34 static GrGpu* Create(GrBackend, GrBackendContext, GrContext* context); | 34 static GrGpu* Create(GrBackend, GrBackendContext, GrContext* context); |
35 | 35 |
36 //////////////////////////////////////////////////////////////////////////// | 36 //////////////////////////////////////////////////////////////////////////// |
37 | 37 |
38 GrGpu(GrContext* context); | 38 GrGpu(GrContext* context); |
39 ~GrGpu() SK_OVERRIDE; | 39 ~GrGpu() override; |
40 | 40 |
41 GrContext* getContext() { return fContext; } | 41 GrContext* getContext() { return fContext; } |
42 const GrContext* getContext() const { return fContext; } | 42 const GrContext* getContext() const { return fContext; } |
43 | 43 |
44 /** | 44 /** |
45 * Gets the capabilities of the draw target. | 45 * Gets the capabilities of the draw target. |
46 */ | 46 */ |
47 const GrDrawTargetCaps* caps() const { return fCaps.get(); } | 47 const GrDrawTargetCaps* caps() const { return fCaps.get(); } |
48 | 48 |
49 GrPathRendering* pathRendering() { return fPathRendering.get(); } | 49 GrPathRendering* pathRendering() { return fPathRendering.get(); } |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 int fGpuTrac
eMarkerCount; | 519 int fGpuTrac
eMarkerCount; |
520 GrTraceMarkerSet fActiveT
raceMarkers; | 520 GrTraceMarkerSet fActiveT
raceMarkers; |
521 GrTraceMarkerSet fStoredT
raceMarkers; | 521 GrTraceMarkerSet fStoredT
raceMarkers; |
522 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. | 522 // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. |
523 GrContext* fContext
; | 523 GrContext* fContext
; |
524 | 524 |
525 typedef SkRefCnt INHERITED; | 525 typedef SkRefCnt INHERITED; |
526 }; | 526 }; |
527 | 527 |
528 #endif | 528 #endif |
OLD | NEW |