| 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 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 | 896 |
| 897 SkTDArray<CleanUpData> fCleanUpData; | 897 SkTDArray<CleanUpData> fCleanUpData; |
| 898 | 898 |
| 899 GrContext(); // init must be called after the constructor. | 899 GrContext(); // init must be called after the constructor. |
| 900 bool init(GrBackend, GrBackendContext); | 900 bool init(GrBackend, GrBackendContext); |
| 901 | 901 |
| 902 void setupDrawBuffer(); | 902 void setupDrawBuffer(); |
| 903 | 903 |
| 904 void flushDrawBuffer(); | 904 void flushDrawBuffer(); |
| 905 | 905 |
| 906 class AutoRestoreEffects; |
| 906 /// Sets the paint and returns the target to draw into. The paint can be NUL
L in which case the | 907 /// Sets the paint and returns the target to draw into. The paint can be NUL
L in which case the |
| 907 /// draw state is left unmodified. | 908 /// draw state is left unmodified. |
| 908 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw); | 909 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw, AutoRestoreEffects
*); |
| 909 | 910 |
| 910 void internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath& path, | 911 void internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath& path, |
| 911 const SkStrokeRec& stroke); | 912 const SkStrokeRec& stroke); |
| 912 | 913 |
| 913 GrTexture* createResizedTexture(const GrTextureDesc& desc, | 914 GrTexture* createResizedTexture(const GrTextureDesc& desc, |
| 914 const GrCacheID& cacheID, | 915 const GrCacheID& cacheID, |
| 915 void* srcData, | 916 void* srcData, |
| 916 size_t rowBytes, | 917 size_t rowBytes, |
| 917 bool needsFiltering); | 918 bool needsFiltering); |
| 918 | 919 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1019 } | 1020 } |
| 1020 | 1021 |
| 1021 GrTexture* texture() { return fTexture; } | 1022 GrTexture* texture() { return fTexture; } |
| 1022 | 1023 |
| 1023 private: | 1024 private: |
| 1024 GrContext* fContext; | 1025 GrContext* fContext; |
| 1025 GrTexture* fTexture; | 1026 GrTexture* fTexture; |
| 1026 }; | 1027 }; |
| 1027 | 1028 |
| 1028 #endif | 1029 #endif |
| OLD | NEW |