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

Side by Side 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, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_COMMAND_BUFFER_SERVICE_TEXTURE_DEFINITION_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_TEXTURE_DEFINITION_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_TEXTURE_DEFINITION_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_TEXTURE_DEFINITION_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 28 matching lines...) Expand all
39 GLenum type; 39 GLenum type;
40 bool cleared; 40 bool cleared;
41 }; 41 };
42 42
43 typedef std::vector<std::vector<LevelInfo> > LevelInfos; 43 typedef std::vector<std::vector<LevelInfo> > LevelInfos;
44 44
45 typedef base::Callback<void(TextureDefinition*)> DestroyCallback; 45 typedef base::Callback<void(TextureDefinition*)> DestroyCallback;
46 46
47 TextureDefinition(GLenum target, 47 TextureDefinition(GLenum target,
48 GLuint service_id, 48 GLuint service_id,
49 bool immutable,
49 const LevelInfos& level_infos); 50 const LevelInfos& level_infos);
50 ~TextureDefinition(); 51 ~TextureDefinition();
51 52
52 GLenum target() const { 53 GLenum target() const {
53 return target_; 54 return target_;
54 } 55 }
55 56
56 GLuint ReleaseServiceId(); 57 GLuint ReleaseServiceId();
57 58
59 bool immutable() const { return immutable_; }
60
58 const LevelInfos& level_infos() const { 61 const LevelInfos& level_infos() const {
59 return level_infos_; 62 return level_infos_;
60 } 63 }
61 64
62 private: 65 private:
63 GLenum target_; 66 GLenum target_;
64 GLuint service_id_; 67 GLuint service_id_;
68 bool immutable_;
65 std::vector<std::vector<LevelInfo> > level_infos_; 69 std::vector<std::vector<LevelInfo> > level_infos_;
66 70
67 DISALLOW_COPY_AND_ASSIGN(TextureDefinition); 71 DISALLOW_COPY_AND_ASSIGN(TextureDefinition);
68 }; 72 };
69 73
70 } // namespage gles2 74 } // namespage gles2
71 } // namespace gpu 75 } // namespace gpu
72 76
73 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_DEFINITION_H_ 77 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_DEFINITION_H_
74
75
OLDNEW
« 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