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 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 void getTestTarget(GrTestTarget*); | 890 void getTestTarget(GrTestTarget*); |
891 | 891 |
892 void addGpuTraceMarker(const GrGpuTraceMarker* marker); | 892 void addGpuTraceMarker(const GrGpuTraceMarker* marker); |
893 void removeGpuTraceMarker(const GrGpuTraceMarker* marker); | 893 void removeGpuTraceMarker(const GrGpuTraceMarker* marker); |
894 | 894 |
895 /** | 895 /** |
896 * Stencil buffers add themselves to the cache using addStencilBuffer. findS
tencilBuffer is | 896 * Stencil buffers add themselves to the cache using addStencilBuffer. findS
tencilBuffer is |
897 * called to check the cache for a SB that matches an RT's criteria. | 897 * called to check the cache for a SB that matches an RT's criteria. |
898 */ | 898 */ |
899 void addStencilBuffer(GrStencilBuffer* sb); | 899 void addStencilBuffer(GrStencilBuffer* sb); |
900 GrStencilBuffer* findStencilBuffer(int width, int height, int sampleCnt); | 900 GrStencilBuffer* findAndRefStencilBuffer(int width, int height, int sampleCn
t); |
901 | 901 |
902 GrPathRenderer* getPathRenderer( | 902 GrPathRenderer* getPathRenderer( |
903 const SkPath& path, | 903 const SkPath& path, |
904 const SkStrokeRec& stroke, | 904 const SkStrokeRec& stroke, |
905 const GrDrawTarget* target, | 905 const GrDrawTarget* target, |
906 bool allowSW, | 906 bool allowSW, |
907 GrPathRendererChain::DrawType drawType = GrPathRendererChain
::kColor_DrawType, | 907 GrPathRendererChain::DrawType drawType = GrPathRendererChain
::kColor_DrawType, |
908 GrPathRendererChain::StencilSupport* stencilSupport = NULL); | 908 GrPathRendererChain::StencilSupport* stencilSupport = NULL); |
909 | 909 |
910 /** | 910 /** |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1016 /** | 1016 /** |
1017 * This callback allows the resource cache to callback into the GrContext | 1017 * This callback allows the resource cache to callback into the GrContext |
1018 * when the cache is still overbudget after a purge. | 1018 * when the cache is still overbudget after a purge. |
1019 */ | 1019 */ |
1020 static bool OverbudgetCB(void* data); | 1020 static bool OverbudgetCB(void* data); |
1021 | 1021 |
1022 typedef SkRefCnt INHERITED; | 1022 typedef SkRefCnt INHERITED; |
1023 }; | 1023 }; |
1024 | 1024 |
1025 #endif | 1025 #endif |
OLD | NEW |