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

Side by Side Diff: gpu/command_buffer/service/texture_definition.h

Issue 11414091: gpu: also move tex parameters into mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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 GLenum min_filter,
50 GLenum mag_filter,
51 GLenum wrap_s,
52 GLenum wrap_t,
53 GLenum usage,
49 bool immutable, 54 bool immutable,
50 const LevelInfos& level_infos); 55 const LevelInfos& level_infos);
51 ~TextureDefinition(); 56 ~TextureDefinition();
52 57
53 GLenum target() const { 58 GLenum target() const {
54 return target_; 59 return target_;
55 } 60 }
56 61
57 GLuint ReleaseServiceId(); 62 GLuint ReleaseServiceId();
63 GLenum min_filter() const { return min_filter_; }
64 GLenum mag_filter() const { return mag_filter_; }
65 GLenum wrap_s() const { return wrap_s_; }
66 GLenum wrap_t() const { return wrap_t_; }
67 GLenum usage() const { return usage_; }
58 68
59 bool immutable() const { return immutable_; } 69 bool immutable() const { return immutable_; }
60 70
61 const LevelInfos& level_infos() const { 71 const LevelInfos& level_infos() const {
62 return level_infos_; 72 return level_infos_;
63 } 73 }
64 74
65 private: 75 private:
66 GLenum target_; 76 GLenum target_;
67 GLuint service_id_; 77 GLuint service_id_;
78 GLenum min_filter_;
79 GLenum mag_filter_;
80 GLenum wrap_s_;
81 GLenum wrap_t_;
82 GLenum usage_;
68 bool immutable_; 83 bool immutable_;
69 std::vector<std::vector<LevelInfo> > level_infos_; 84 std::vector<std::vector<LevelInfo> > level_infos_;
70 85
71 DISALLOW_COPY_AND_ASSIGN(TextureDefinition); 86 DISALLOW_COPY_AND_ASSIGN(TextureDefinition);
72 }; 87 };
73 88
74 } // namespage gles2 89 } // namespage gles2
75 } // namespace gpu 90 } // namespace gpu
76 91
77 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_DEFINITION_H_ 92 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_DEFINITION_H_
OLDNEW
« no previous file with comments | « gpu/GLES2/extensions/CHROMIUM/CHROMIUM_texture_mailbox.txt ('k') | gpu/command_buffer/service/texture_definition.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698