Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: include/gpu/GrContext.h

Issue 707493002: Use GrResourceCache2 to service content key lookups (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: move #ifdef SK_SUPPORT_GPU Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « bench/GrResourceCacheBench.cpp ('k') | include/gpu/GrGpuResource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « bench/GrResourceCacheBench.cpp ('k') | include/gpu/GrGpuResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698