OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef GrContext_DEFINED | 10 #ifndef GrContext_DEFINED |
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 AutoClip fAutoClip; | 829 AutoClip fAutoClip; |
830 AutoRenderTarget fAutoRT; | 830 AutoRenderTarget fAutoRT; |
831 AutoMatrix fAutoMatrix; | 831 AutoMatrix fAutoMatrix; |
832 }; | 832 }; |
833 | 833 |
834 /////////////////////////////////////////////////////////////////////////// | 834 /////////////////////////////////////////////////////////////////////////// |
835 // Functions intended for internal use only. | 835 // Functions intended for internal use only. |
836 GrGpu* getGpu() { return fGpu; } | 836 GrGpu* getGpu() { return fGpu; } |
837 const GrGpu* getGpu() const { return fGpu; } | 837 const GrGpu* getGpu() const { return fGpu; } |
838 GrFontCache* getFontCache() { return fFontCache; } | 838 GrFontCache* getFontCache() { return fFontCache; } |
839 GrDrawTarget* getTextTarget(const GrPaint& paint); | 839 GrDrawTarget* getTextTarget(); |
840 const GrIndexBuffer* getQuadIndexBuffer() const; | 840 const GrIndexBuffer* getQuadIndexBuffer() const; |
841 | 841 |
842 /** | 842 /** |
843 * Stencil buffers add themselves to the cache using addStencilBuffer. findS
tencilBuffer is | 843 * Stencil buffers add themselves to the cache using addStencilBuffer. findS
tencilBuffer is |
844 * called to check the cache for a SB that matches an RT's criteria. | 844 * called to check the cache for a SB that matches an RT's criteria. |
845 */ | 845 */ |
846 void addStencilBuffer(GrStencilBuffer* sb); | 846 void addStencilBuffer(GrStencilBuffer* sb); |
847 GrStencilBuffer* findStencilBuffer(int width, int height, int sampleCnt); | 847 GrStencilBuffer* findStencilBuffer(int width, int height, int sampleCnt); |
848 | 848 |
849 GrPathRenderer* getPathRenderer( | 849 GrPathRenderer* getPathRenderer( |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1019 } | 1019 } |
1020 | 1020 |
1021 GrTexture* texture() { return fTexture; } | 1021 GrTexture* texture() { return fTexture; } |
1022 | 1022 |
1023 private: | 1023 private: |
1024 GrContext* fContext; | 1024 GrContext* fContext; |
1025 GrTexture* fTexture; | 1025 GrTexture* fTexture; |
1026 }; | 1026 }; |
1027 | 1027 |
1028 #endif | 1028 #endif |
OLD | NEW |