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

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

Issue 1249543003: Creating functions for uploading a mipmapped texture. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Fixing rebase errors and cleaning up. Created 4 years, 10 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 | include/gpu/GrTextureProvider.h » ('j') | src/gpu/gl/GrGLGpu.cpp » ('J')
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 28 matching lines...) Expand all
39 this->validateDesc(); 39 this->validateDesc();
40 } 40 }
41 #endif 41 #endif
42 42
43 /** Access methods that are only to be used within Skia code. */ 43 /** Access methods that are only to be used within Skia code. */
44 inline GrTexturePriv texturePriv(); 44 inline GrTexturePriv texturePriv();
45 inline const GrTexturePriv texturePriv() const; 45 inline const GrTexturePriv texturePriv() const;
46 46
47 protected: 47 protected:
48 GrTexture(GrGpu*, LifeCycle, const GrSurfaceDesc&); 48 GrTexture(GrGpu*, LifeCycle, const GrSurfaceDesc&);
49 GrTexture(GrGpu*, LifeCycle, const GrSurfaceDesc&, bool wasMipMapDataProvide d);
bsalomon 2016/02/24 14:43:15 Do we need the old constructor? Or alternatively i
cblume 2016/02/24 18:19:19 Done.
49 50
50 void validateDesc() const; 51 void validateDesc() const;
51 52
52 private: 53 private:
53 size_t onGpuMemorySize() const override; 54 size_t onGpuMemorySize() const override;
54 void dirtyMipMaps(bool mipMapsDirty); 55 void dirtyMipMaps(bool mipMapsDirty);
55 56
56 enum MipMapsStatus { 57 enum MipMapsStatus {
57 kNotAllocated_MipMapsStatus, 58 kNotAllocated_MipMapsStatus,
58 kAllocated_MipMapsStatus, 59 kAllocated_MipMapsStatus,
59 kValid_MipMapsStatus 60 kValid_MipMapsStatus
60 }; 61 };
61 62
62 MipMapsStatus fMipMapsStatus; 63 MipMapsStatus fMipMapsStatus;
64 int fMaxMipMapLevel;
63 65
64 friend class GrTexturePriv; 66 friend class GrTexturePriv;
65 67
66 typedef GrSurface INHERITED; 68 typedef GrSurface INHERITED;
67 }; 69 };
68 70
69 #endif 71 #endif
OLDNEW
« no previous file with comments | « no previous file | include/gpu/GrTextureProvider.h » ('j') | src/gpu/gl/GrGLGpu.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698