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

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

Issue 846303002: Make uncached textures uncached from the get go. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add comment Created 5 years, 11 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 | « include/gpu/GrRenderTarget.h ('k') | include/gpu/GrTexture.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 2012 Google Inc. 2 * Copyright 2012 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 8
9 #ifndef GrSurface_DEFINED 9 #ifndef GrSurface_DEFINED
10 #define GrSurface_DEFINED 10 #define GrSurface_DEFINED
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Methods made available via GrSurfacePriv 131 // Methods made available via GrSurfacePriv
132 SkImageInfo info() const; 132 SkImageInfo info() const;
133 bool savePixels(const char* filename); 133 bool savePixels(const char* filename);
134 bool hasPendingRead() const; 134 bool hasPendingRead() const;
135 bool hasPendingWrite() const; 135 bool hasPendingWrite() const;
136 bool hasPendingIO() const; 136 bool hasPendingIO() const;
137 137
138 // Provides access to methods that should be public within Skia code. 138 // Provides access to methods that should be public within Skia code.
139 friend class GrSurfacePriv; 139 friend class GrSurfacePriv;
140 140
141 GrSurface(GrGpu* gpu, bool isWrapped, const GrSurfaceDesc& desc) 141 GrSurface(GrGpu* gpu, LifeCycle lifeCycle, const GrSurfaceDesc& desc)
142 : INHERITED(gpu, isWrapped) 142 : INHERITED(gpu, lifeCycle)
143 , fDesc(desc) { 143 , fDesc(desc) {
144 } 144 }
145 145
146 GrSurfaceDesc fDesc; 146 GrSurfaceDesc fDesc;
147 147
148 private: 148 private:
149 typedef GrGpuResource INHERITED; 149 typedef GrGpuResource INHERITED;
150 }; 150 };
151 151
152 #endif 152 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrRenderTarget.h ('k') | include/gpu/GrTexture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698