| 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 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 const Options fOptions; | 852 const Options fOptions; |
| 853 | 853 |
| 854 GrContext(const Options&); // init must be called after the constructor. | 854 GrContext(const Options&); // init must be called after the constructor. |
| 855 bool init(GrBackend, GrBackendContext); | 855 bool init(GrBackend, GrBackendContext); |
| 856 void initMockContext(); | 856 void initMockContext(); |
| 857 void initCommon(); | 857 void initCommon(); |
| 858 | 858 |
| 859 void setupDrawBuffer(); | 859 void setupDrawBuffer(); |
| 860 | 860 |
| 861 class AutoCheckFlush; | 861 class AutoCheckFlush; |
| 862 /// Sets the paint and returns the target to draw into. The paint can be NUL
L in which case the | 862 // Sets the paint and returns the target to draw into. This function is ove
rloaded to either |
| 863 /// draw state is left unmodified. | 863 // take a GrDrawState, GrPaint, and AutoCheckFlush, or JUST an AutoCheckFlus
h |
| 864 GrDrawTarget* prepareToDraw(GrDrawState* ds, const GrPaint* paint, const Aut
oCheckFlush*); | 864 GrDrawTarget* prepareToDraw(GrDrawState* ds, const GrPaint* paint, const Aut
oCheckFlush*); |
| 865 | 865 |
| 866 void internalDrawPath(GrDrawTarget*, | 866 void internalDrawPath(GrDrawTarget*, |
| 867 GrDrawState*, | 867 GrDrawState*, |
| 868 const SkMatrix& viewMatrix, | 868 const SkMatrix& viewMatrix, |
| 869 GrColor, | 869 GrColor, |
| 870 bool useAA, | 870 bool useAA, |
| 871 const SkPath&, | 871 const SkPath&, |
| 872 const GrStrokeInfo&); | 872 const GrStrokeInfo&); |
| 873 | 873 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 888 /** | 888 /** |
| 889 * This callback allows the resource cache to callback into the GrContext | 889 * This callback allows the resource cache to callback into the GrContext |
| 890 * when the cache is still over budget after a purge. | 890 * when the cache is still over budget after a purge. |
| 891 */ | 891 */ |
| 892 static void OverBudgetCB(void* data); | 892 static void OverBudgetCB(void* data); |
| 893 | 893 |
| 894 typedef SkRefCnt INHERITED; | 894 typedef SkRefCnt INHERITED; |
| 895 }; | 895 }; |
| 896 | 896 |
| 897 #endif | 897 #endif |
| OLD | NEW |