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 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
895 bool init(GrBackend, GrBackendContext); | 895 bool init(GrBackend, GrBackendContext); |
896 | 896 |
897 void setupDrawBuffer(); | 897 void setupDrawBuffer(); |
898 | 898 |
899 void flushDrawBuffer(); | 899 void flushDrawBuffer(); |
900 | 900 |
901 /// Sets the paint and returns the target to draw into. The paint can be NUL
L in which case the | 901 /// Sets the paint and returns the target to draw into. The paint can be NUL
L in which case the |
902 /// draw state is left unmodified. | 902 /// draw state is left unmodified. |
903 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw); | 903 GrDrawTarget* prepareToDraw(const GrPaint*, BufferedDraw); |
904 | 904 |
905 void internalDrawPath(GrDrawTarget* target, const GrPaint& paint, const SkPa
th& path, | 905 void internalDrawPath(GrDrawTarget* target, bool useAA, const SkPath& path, |
906 const SkStrokeRec& stroke); | 906 const SkStrokeRec& stroke); |
907 | 907 |
908 GrTexture* createResizedTexture(const GrTextureDesc& desc, | 908 GrTexture* createResizedTexture(const GrTextureDesc& desc, |
909 const GrCacheID& cacheID, | 909 const GrCacheID& cacheID, |
910 void* srcData, | 910 void* srcData, |
911 size_t rowBytes, | 911 size_t rowBytes, |
912 bool needsFiltering); | 912 bool needsFiltering); |
913 | 913 |
914 // Needed so GrTexture's returnToCache helper function can call | 914 // Needed so GrTexture's returnToCache helper function can call |
915 // addExistingTextureToCache | 915 // addExistingTextureToCache |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 } | 1011 } |
1012 | 1012 |
1013 GrTexture* texture() { return fTexture; } | 1013 GrTexture* texture() { return fTexture; } |
1014 | 1014 |
1015 private: | 1015 private: |
1016 GrContext* fContext; | 1016 GrContext* fContext; |
1017 GrTexture* fTexture; | 1017 GrTexture* fTexture; |
1018 }; | 1018 }; |
1019 | 1019 |
1020 #endif | 1020 #endif |
OLD | NEW |