| 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 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 bool init(GrBackend, GrBackendContext); | 903 bool init(GrBackend, GrBackendContext); |
| 904 | 904 |
| 905 void setupDrawBuffer(); | 905 void setupDrawBuffer(); |
| 906 | 906 |
| 907 class AutoRestoreEffects; | 907 class AutoRestoreEffects; |
| 908 class AutoCheckFlush; | 908 class AutoCheckFlush; |
| 909 /// Sets the paint and returns the target to draw into. The paint can be NUL
L in which case the | 909 /// Sets the paint and returns the target to draw into. The paint can be NUL
L in which case the |
| 910 /// draw state is left unmodified. | 910 /// draw state is left unmodified. |
| 911 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw, AutoRestoreEffects
*, AutoCheckFlush*); | 911 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw, AutoRestoreEffects
*, AutoCheckFlush*); |
| 912 | 912 |
| 913 void internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath& path, | 913 void internalDrawPath(GrDrawTarget* target, const GrPaint&, bool useAA, cons
t SkPath& path, |
| 914 const SkStrokeRec& stroke); | 914 const SkStrokeRec& stroke); |
| 915 | 915 |
| 916 GrTexture* createResizedTexture(const GrTextureDesc& desc, | 916 GrTexture* createResizedTexture(const GrTextureDesc& desc, |
| 917 const GrCacheID& cacheID, | 917 const GrCacheID& cacheID, |
| 918 void* srcData, | 918 void* srcData, |
| 919 size_t rowBytes, | 919 size_t rowBytes, |
| 920 bool filter); | 920 bool filter); |
| 921 | 921 |
| 922 // Needed so GrTexture's returnToCache helper function can call | 922 // Needed so GrTexture's returnToCache helper function can call |
| 923 // addExistingTextureToCache | 923 // addExistingTextureToCache |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1028 } | 1028 } |
| 1029 | 1029 |
| 1030 GrTexture* texture() { return fTexture; } | 1030 GrTexture* texture() { return fTexture; } |
| 1031 | 1031 |
| 1032 private: | 1032 private: |
| 1033 GrContext* fContext; | 1033 GrContext* fContext; |
| 1034 GrTexture* fTexture; | 1034 GrTexture* fTexture; |
| 1035 }; | 1035 }; |
| 1036 | 1036 |
| 1037 #endif | 1037 #endif |
| OLD | NEW |