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

Side by Side Diff: src/gpu/GrResourceProvider.h

Issue 1810323002: Cache render targets that render to wrapped textures Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 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 GrResourceProvider_DEFINED 8 #ifndef GrResourceProvider_DEFINED
9 #define GrResourceProvider_DEFINED 9 #define GrResourceProvider_DEFINED
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 * Factories for GrPath and GrPathRange objects. It's an error to call these if path rendering 85 * Factories for GrPath and GrPathRange objects. It's an error to call these if path rendering
86 * is not supported. 86 * is not supported.
87 */ 87 */
88 GrPath* createPath(const SkPath&, const GrStrokeInfo&); 88 GrPath* createPath(const SkPath&, const GrStrokeInfo&);
89 GrPathRange* createPathRange(GrPathRange::PathGenerator*, const GrStrokeInfo &); 89 GrPathRange* createPathRange(GrPathRange::PathGenerator*, const GrStrokeInfo &);
90 GrPathRange* createGlyphs(const SkTypeface*, const SkDescriptor*, const GrSt rokeInfo&); 90 GrPathRange* createGlyphs(const SkTypeface*, const SkDescriptor*, const GrSt rokeInfo&);
91 91
92 using GrTextureProvider::assignUniqueKeyToResource; 92 using GrTextureProvider::assignUniqueKeyToResource;
93 using GrTextureProvider::findAndRefResourceByUniqueKey; 93 using GrTextureProvider::findAndRefResourceByUniqueKey;
94 using GrTextureProvider::findAndRefTextureByUniqueKey; 94 using GrTextureProvider::findAndRefTextureByUniqueKey;
95 using GrTextureProvider::findAndRefRenderTargetByUniqueKey;
95 using GrTextureProvider::abandon; 96 using GrTextureProvider::abandon;
96 97
97 enum Flags { 98 enum Flags {
98 /** If the caller intends to do direct reads/writes to/from the CPU then this flag must be 99 /** If the caller intends to do direct reads/writes to/from the CPU then this flag must be
99 * set when accessing resources during a GrDrawTarget flush. This inclu des the execution of 100 * set when accessing resources during a GrDrawTarget flush. This inclu des the execution of
100 * GrBatch objects. The reason is that these memory operations are done immediately and 101 * GrBatch objects. The reason is that these memory operations are done immediately and
101 * will occur out of order WRT the operations being flushed. 102 * will occur out of order WRT the operations being flushed.
102 * Make this automatic: https://bug.skia.org/4156 103 * Make this automatic: https://bug.skia.org/4156
103 */ 104 */
104 kNoPendingIO_Flag = kNoPendingIO_ScratchTextureFlag, 105 kNoPendingIO_Flag = kNoPendingIO_ScratchTextureFlag,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 const GrUniqueKey& key); 165 const GrUniqueKey& key);
165 166
166 const GrIndexBuffer* createQuadIndexBuffer(); 167 const GrIndexBuffer* createQuadIndexBuffer();
167 168
168 GrUniqueKey fQuadIndexBufferKey; 169 GrUniqueKey fQuadIndexBufferKey;
169 170
170 typedef GrTextureProvider INHERITED; 171 typedef GrTextureProvider INHERITED;
171 }; 172 };
172 173
173 #endif 174 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698