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

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

Issue 1187523005: Add support for creating texture backed images where Skia will delete the texture. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add default param to support Chrome's current callers Created 5 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 | « src/gpu/gl/GrGLStencilAttachment.cpp ('k') | src/gpu/gl/GrGLTexture.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 * 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void onAbandon() override; 64 void onAbandon() override;
65 void onRelease() override; 65 void onRelease() override;
66 66
67 private: 67 private:
68 TexParams fTexParams; 68 TexParams fTexParams;
69 GrGpu::ResetTimestamp fTexParamsTimestamp; 69 GrGpu::ResetTimestamp fTexParamsTimestamp;
70 GrGLuint fTextureID; 70 GrGLuint fTextureID;
71 71
72 // We track this separately from GrGpuResource because this may be both a te xture and a render 72 // We track this separately from GrGpuResource because this may be both a te xture and a render
73 // target, and the texture may be wrapped while the render target is not. 73 // target, and the texture may be wrapped while the render target is not.
74 bool fIsWrapped; 74 LifeCycle fTextureIDLifecycle;
75 75
76 typedef GrTexture INHERITED; 76 typedef GrTexture INHERITED;
77 }; 77 };
78 78
79 #endif 79 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLStencilAttachment.cpp ('k') | src/gpu/gl/GrGLTexture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698