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

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

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 years, 7 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 | « src/gpu/gl/GrGLStencilAttachment.h ('k') | src/gpu/gl/GrGLTextureRenderTarget.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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 void setCachedTexParams(const TexParams& texParams, 47 void setCachedTexParams(const TexParams& texParams,
48 GrGpu::ResetTimestamp timestamp) { 48 GrGpu::ResetTimestamp timestamp) {
49 fTexParams = texParams; 49 fTexParams = texParams;
50 fTexParamsTimestamp = timestamp; 50 fTexParamsTimestamp = timestamp;
51 } 51 }
52 52
53 GrGLuint textureID() const { return fInfo.fID; } 53 GrGLuint textureID() const { return fInfo.fID; }
54 54
55 GrGLenum target() const { return fInfo.fTarget; } 55 GrGLenum target() const { return fInfo.fTarget; }
56 56
57 GrRenderTarget* arrgh() override { return NULL; }
58
57 protected: 59 protected:
58 // The public constructor registers this object with the cache. However, onl y the most derived 60 // The public constructor registers this object with the cache. However, onl y the most derived
59 // class should register with the cache. This constructor does not do the re gistration and 61 // class should register with the cache. This constructor does not do the re gistration and
60 // rather moves that burden onto the derived class. 62 // rather moves that burden onto the derived class.
61 enum Derived { kDerived }; 63 enum Derived { kDerived };
62 GrGLTexture(GrGLGpu*, const GrSurfaceDesc&, const IDDesc&, Derived); 64 GrGLTexture(GrGLGpu*, const GrSurfaceDesc&, const IDDesc&, Derived);
63 65
64 void init(const GrSurfaceDesc&, const IDDesc&); 66 void init(const GrSurfaceDesc&, const IDDesc&);
65 67
66 void onAbandon() override; 68 void onAbandon() override;
67 void onRelease() override; 69 void onRelease() override;
68 void setMemoryBacking(SkTraceMemoryDump* traceMemoryDump, 70 void setMemoryBacking(SkTraceMemoryDump* traceMemoryDump,
69 const SkString& dumpName) const override; 71 const SkString& dumpName) const override;
70 72
71 private: 73 private:
72 TexParams fTexParams; 74 TexParams fTexParams;
73 GrGpu::ResetTimestamp fTexParamsTimestamp; 75 GrGpu::ResetTimestamp fTexParamsTimestamp;
74 // Holds the texture target and ID. A pointer to this may be shared to exter nal clients for 76 // Holds the texture target and ID. A pointer to this may be shared to exter nal clients for
75 // direct interaction with the GL object. 77 // direct interaction with the GL object.
76 GrGLTextureInfo fInfo; 78 GrGLTextureInfo fInfo;
77 79
78 // We track this separately from GrGpuResource because this may be both a te xture and a render 80 // We track this separately from GrGpuResource because this may be both a te xture and a render
79 // target, and the texture may be wrapped while the render target is not. 81 // target, and the texture may be wrapped while the render target is not.
80 LifeCycle fTextureIDLifecycle; 82 LifeCycle fTextureIDLifecycle;
81 83
82 typedef GrTexture INHERITED; 84 typedef GrTexture INHERITED;
83 }; 85 };
84 86
85 #endif 87 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLStencilAttachment.h ('k') | src/gpu/gl/GrGLTextureRenderTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698