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

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: fix spec 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
« no previous file with comments | « gpu/command_buffer/service/mailbox_manager.cc ('k') | gpu/command_buffer/service/texture_definition.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9ea9357bbc86c175a086647cb9244b90206ec44a 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();
+ 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_
-
-
« no previous file with comments | « gpu/command_buffer/service/mailbox_manager.cc ('k') | gpu/command_buffer/service/texture_definition.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698