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

Unified Diff: gpu/command_buffer/service/texture_definition.h

Issue 10984009: Allow immutable textures into mailboxes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/texture_definition.h
diff --git a/gpu/command_buffer/service/texture_definition.h b/gpu/command_buffer/service/texture_definition.h
index 520c6f8f93090f1c553596cd62f5ae310d32b583..d3dc43f8377d3bd3332dbe2558ab34de65b7cf9f 100644
--- a/gpu/command_buffer/service/texture_definition.h
+++ b/gpu/command_buffer/service/texture_definition.h
@@ -46,6 +46,7 @@ class GPU_EXPORT TextureDefinition {
TextureDefinition(GLenum target,
GLuint service_id,
+ bool immutable,
const LevelInfos& level_infos);
~TextureDefinition();
@@ -55,6 +56,8 @@ class GPU_EXPORT TextureDefinition {
GLuint ReleaseServiceId();
+ const bool immutable() const { return immutable_; }
+
const LevelInfos& level_infos() const {
return level_infos_;
}
@@ -62,6 +65,7 @@ class GPU_EXPORT TextureDefinition {
private:
GLenum target_;
GLuint service_id_;
+ bool immutable_;
std::vector<std::vector<LevelInfo> > level_infos_;
DISALLOW_COPY_AND_ASSIGN(TextureDefinition);
@@ -71,5 +75,3 @@ class GPU_EXPORT TextureDefinition {
} // namespace gpu
#endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_DEFINITION_H_
-
-

Powered by Google App Engine
This is Rietveld 408576698