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

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

Issue 578563002: Remove createPath* from GrGpu and GrContext (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_glyphmemorypath
Patch Set: Simple quick change Created 6 years, 3 months 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 | « no previous file | src/gpu/GrContext.cpp » ('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 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 const GrEffect* createUPMToPMEffect(GrTexture* texture, 1048 const GrEffect* createUPMToPMEffect(GrTexture* texture,
1049 bool swapRAndB, 1049 bool swapRAndB,
1050 const SkMatrix& matrix); 1050 const SkMatrix& matrix);
1051 1051
1052 /** 1052 /**
1053 * This callback allows the resource cache to callback into the GrContext 1053 * This callback allows the resource cache to callback into the GrContext
1054 * when the cache is still overbudget after a purge. 1054 * when the cache is still overbudget after a purge.
1055 */ 1055 */
1056 static bool OverbudgetCB(void* data); 1056 static bool OverbudgetCB(void* data);
1057 1057
1058 /** Creates a new gpu path, based on the specified path and stroke and retur ns it.
1059 * The caller owns a ref on the returned path which must be balanced by a ca ll to unref.
1060 *
1061 * @param skPath the path geometry.
1062 * @param stroke the path stroke.
1063 * @return a new path or NULL if the operation is not supported by the backe nd.
1064 */
1065 GrPath* createPath(const SkPath& skPath, const SkStrokeRec& stroke);
1066
1067 typedef SkRefCnt INHERITED; 1058 typedef SkRefCnt INHERITED;
1068 }; 1059 };
1069 1060
1070 /** 1061 /**
1071 * Gets and locks a scratch texture from a descriptor using either exact or appr oximate criteria. 1062 * Gets and locks a scratch texture from a descriptor using either exact or appr oximate criteria.
1072 * Unlocks texture in the destructor. 1063 * Unlocks texture in the destructor.
1073 */ 1064 */
1074 class GrAutoScratchTexture : public ::SkNoncopyable { 1065 class GrAutoScratchTexture : public ::SkNoncopyable {
1075 public: 1066 public:
1076 GrAutoScratchTexture() 1067 GrAutoScratchTexture()
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 } 1138 }
1148 1139
1149 GrTexture* texture() { return fTexture; } 1140 GrTexture* texture() { return fTexture; }
1150 1141
1151 private: 1142 private:
1152 GrContext* fContext; 1143 GrContext* fContext;
1153 GrTexture* fTexture; 1144 GrTexture* fTexture;
1154 }; 1145 };
1155 1146
1156 #endif 1147 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698