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

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

Issue 2007973002: Manually generated sRGB mipmaps. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Break long columns Created 4 years, 6 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 | « gm/gamma.cpp ('k') | src/gpu/GrTexture.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef GrTexture_DEFINED 9 #ifndef GrTexture_DEFINED
10 #define GrTexture_DEFINED 10 #define GrTexture_DEFINED
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 inline const GrTexturePriv texturePriv() const; 46 inline const GrTexturePriv texturePriv() const;
47 47
48 protected: 48 protected:
49 GrTexture(GrGpu*, const GrSurfaceDesc&, GrSLType, bool wasMipMapDataProvided ); 49 GrTexture(GrGpu*, const GrSurfaceDesc&, GrSLType, bool wasMipMapDataProvided );
50 50
51 void validateDesc() const; 51 void validateDesc() const;
52 52
53 private: 53 private:
54 void computeScratchKey(GrScratchKey*) const override; 54 void computeScratchKey(GrScratchKey*) const override;
55 size_t onGpuMemorySize() const override; 55 size_t onGpuMemorySize() const override;
56 void dirtyMipMaps(bool mipMapsDirty); 56 void dirtyMipMaps(bool mipMapsDirty, bool sRGBCorrect);
57 57
58 enum MipMapsStatus { 58 enum MipMapsStatus {
59 kNotAllocated_MipMapsStatus, 59 kNotAllocated_MipMapsStatus,
60 kAllocated_MipMapsStatus, 60 kAllocated_MipMapsStatus,
61 kValid_MipMapsStatus 61 kValid_MipMapsStatus
62 }; 62 };
63 63
64 GrSLType fSamplerType; 64 GrSLType fSamplerType;
65 MipMapsStatus fMipMapsStatus; 65 MipMapsStatus fMipMapsStatus;
66 int fMaxMipMapLevel; 66 int fMaxMipMapLevel;
67 bool fMipMapsAreSRGBCorrect;
67 68
68 friend class GrTexturePriv; 69 friend class GrTexturePriv;
69 70
70 typedef GrSurface INHERITED; 71 typedef GrSurface INHERITED;
71 }; 72 };
72 73
73 #endif 74 #endif
OLDNEW
« no previous file with comments | « gm/gamma.cpp ('k') | src/gpu/GrTexture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698