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 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
894 /// draw state is left unmodified. | 894 /// draw state is left unmodified. |
895 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw, AutoRestoreEffects
*); | 895 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw, AutoRestoreEffects
*); |
896 | 896 |
897 void internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath& path, | 897 void internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath& path, |
898 const SkStrokeRec& stroke); | 898 const SkStrokeRec& stroke); |
899 | 899 |
900 GrTexture* createResizedTexture(const GrTextureDesc& desc, | 900 GrTexture* createResizedTexture(const GrTextureDesc& desc, |
901 const GrCacheID& cacheID, | 901 const GrCacheID& cacheID, |
902 void* srcData, | 902 void* srcData, |
903 size_t rowBytes, | 903 size_t rowBytes, |
904 bool needsFiltering); | 904 bool filter); |
905 | 905 |
906 // Needed so GrTexture's returnToCache helper function can call | 906 // Needed so GrTexture's returnToCache helper function can call |
907 // addExistingTextureToCache | 907 // addExistingTextureToCache |
908 friend class GrTexture; | 908 friend class GrTexture; |
909 | 909 |
910 // Add an existing texture to the texture cache. This is intended solely | 910 // Add an existing texture to the texture cache. This is intended solely |
911 // for use with textures released from an GrAutoScratchTexture. | 911 // for use with textures released from an GrAutoScratchTexture. |
912 void addExistingTextureToCache(GrTexture* texture); | 912 void addExistingTextureToCache(GrTexture* texture); |
913 | 913 |
914 /** | 914 /** |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1012 } | 1012 } |
1013 | 1013 |
1014 GrTexture* texture() { return fTexture; } | 1014 GrTexture* texture() { return fTexture; } |
1015 | 1015 |
1016 private: | 1016 private: |
1017 GrContext* fContext; | 1017 GrContext* fContext; |
1018 GrTexture* fTexture; | 1018 GrTexture* fTexture; |
1019 }; | 1019 }; |
1020 | 1020 |
1021 #endif | 1021 #endif |
OLD | NEW |