| 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 13 matching lines...) Expand all  Loading... | 
| 24 class GrStencilAttachment; | 24 class GrStencilAttachment; | 
| 25 class GrVertices; | 25 class GrVertices; | 
| 26 | 26 | 
| 27 class GrGpu : public SkRefCnt { | 27 class GrGpu : public SkRefCnt { | 
| 28 public: | 28 public: | 
| 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, const GrContextOptions&, G
     rContext* context); | 
| 35 | 35 | 
| 36     //////////////////////////////////////////////////////////////////////////// | 36     //////////////////////////////////////////////////////////////////////////// | 
| 37 | 37 | 
| 38     GrGpu(GrContext* context); | 38     GrGpu(GrContext* context); | 
| 39     ~GrGpu() 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     /** | 
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 495     int                                                                 fGpuTrac
     eMarkerCount; | 495     int                                                                 fGpuTrac
     eMarkerCount; | 
| 496     GrTraceMarkerSet                                                    fActiveT
     raceMarkers; | 496     GrTraceMarkerSet                                                    fActiveT
     raceMarkers; | 
| 497     GrTraceMarkerSet                                                    fStoredT
     raceMarkers; | 497     GrTraceMarkerSet                                                    fStoredT
     raceMarkers; | 
| 498     // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. | 498     // The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu. | 
| 499     GrContext*                                                          fContext
     ; | 499     GrContext*                                                          fContext
     ; | 
| 500 | 500 | 
| 501     typedef SkRefCnt INHERITED; | 501     typedef SkRefCnt INHERITED; | 
| 502 }; | 502 }; | 
| 503 | 503 | 
| 504 #endif | 504 #endif | 
| OLD | NEW | 
|---|