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

Side by Side Diff: src/gpu/gl/GrGLTexture.h

Issue 682223002: rename GrTextureDesc->GrSurfaceDesc, GrTextureFlags->GrSurfaceFlags (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: const 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 | « src/gpu/gl/GrGLRenderTarget.cpp ('k') | src/gpu/gl/GrGpuGL.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 2011 Google Inc. 2 * Copyright 2011 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 GrGLTexture_DEFINED 9 #ifndef GrGLTexture_DEFINED
10 #define GrGLTexture_DEFINED 10 #define GrGLTexture_DEFINED
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 public: 50 public:
51 struct TexParams { 51 struct TexParams {
52 GrGLenum fMinFilter; 52 GrGLenum fMinFilter;
53 GrGLenum fMagFilter; 53 GrGLenum fMagFilter;
54 GrGLenum fWrapS; 54 GrGLenum fWrapS;
55 GrGLenum fWrapT; 55 GrGLenum fWrapT;
56 GrGLenum fSwizzleRGBA[4]; 56 GrGLenum fSwizzleRGBA[4];
57 void invalidate() { memset(this, 0xff, sizeof(TexParams)); } 57 void invalidate() { memset(this, 0xff, sizeof(TexParams)); }
58 }; 58 };
59 59
60 struct Desc : public GrTextureDesc { 60 struct Desc : public GrSurfaceDesc {
61 GrGLuint fTextureID; 61 GrGLuint fTextureID;
62 bool fIsWrapped; 62 bool fIsWrapped;
63 }; 63 };
64 64
65 // creates a texture that is also an RT 65 // creates a texture that is also an RT
66 GrGLTexture(GrGpuGL* gpu, 66 GrGLTexture(GrGpuGL* gpu,
67 const Desc& textureDesc, 67 const Desc& textureDesc,
68 const GrGLRenderTarget::Desc& rtDesc); 68 const GrGLRenderTarget::Desc& rtDesc);
69 69
70 // creates a non-RT texture 70 // creates a non-RT texture
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 SkAutoTUnref<GrGLTexID> fTexIDObj; 102 SkAutoTUnref<GrGLTexID> fTexIDObj;
103 103
104 void init(GrGpuGL* gpu, 104 void init(GrGpuGL* gpu,
105 const Desc& textureDesc, 105 const Desc& textureDesc,
106 const GrGLRenderTarget::Desc* rtDesc); 106 const GrGLRenderTarget::Desc* rtDesc);
107 107
108 typedef GrTexture INHERITED; 108 typedef GrTexture INHERITED;
109 }; 109 };
110 110
111 #endif 111 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLRenderTarget.cpp ('k') | src/gpu/gl/GrGpuGL.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698