Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 GrContext_DEFINED | 8 #ifndef GrContext_DEFINED |
| 9 #define GrContext_DEFINED | 9 #define GrContext_DEFINED |
| 10 | 10 |
| (...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 904 private: | 904 private: |
| 905 AutoClip fAutoClip; | 905 AutoClip fAutoClip; |
| 906 AutoRenderTarget fAutoRT; | 906 AutoRenderTarget fAutoRT; |
| 907 AutoMatrix fAutoMatrix; | 907 AutoMatrix fAutoMatrix; |
| 908 }; | 908 }; |
| 909 | 909 |
| 910 /////////////////////////////////////////////////////////////////////////// | 910 /////////////////////////////////////////////////////////////////////////// |
| 911 // Functions intended for internal use only. | 911 // Functions intended for internal use only. |
| 912 GrGpu* getGpu() { return fGpu; } | 912 GrGpu* getGpu() { return fGpu; } |
| 913 const GrGpu* getGpu() const { return fGpu; } | 913 const GrGpu* getGpu() const { return fGpu; } |
| 914 GrInOrderDrawBuffer* getDrawBuffer() { return fDrawBuffer; } | |
|
bsalomon
2014/06/18 20:35:17
Ahhhhhhhhh
egdaniel
2014/06/18 21:03:43
I going to take that as an excited, you're amazing
bsalomon
2014/06/18 21:14:47
You do that :)
| |
| 914 GrFontCache* getFontCache() { return fFontCache; } | 915 GrFontCache* getFontCache() { return fFontCache; } |
| 915 GrLayerCache* getLayerCache() { return fLayerCache.get(); } | 916 GrLayerCache* getLayerCache() { return fLayerCache.get(); } |
| 916 GrDrawTarget* getTextTarget(); | 917 GrDrawTarget* getTextTarget(); |
| 917 const GrIndexBuffer* getQuadIndexBuffer() const; | 918 const GrIndexBuffer* getQuadIndexBuffer() const; |
| 918 GrAARectRenderer* getAARectRenderer() { return fAARectRenderer; } | 919 GrAARectRenderer* getAARectRenderer() { return fAARectRenderer; } |
| 919 | 920 |
| 920 // Called by tests that draw directly to the context via GrDrawTarget | 921 // Called by tests that draw directly to the context via GrDrawTarget |
| 921 void getTestTarget(GrTestTarget*); | 922 void getTestTarget(GrTestTarget*); |
| 922 | 923 |
| 923 // Functions for managing gpu trace markers | 924 // Functions for managing gpu trace markers |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1129 } | 1130 } |
| 1130 | 1131 |
| 1131 GrTexture* texture() { return fTexture; } | 1132 GrTexture* texture() { return fTexture; } |
| 1132 | 1133 |
| 1133 private: | 1134 private: |
| 1134 GrContext* fContext; | 1135 GrContext* fContext; |
| 1135 GrTexture* fTexture; | 1136 GrTexture* fTexture; |
| 1136 }; | 1137 }; |
| 1137 | 1138 |
| 1138 #endif | 1139 #endif |
| OLD | NEW |