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

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

Issue 14095009: Android: Fix up video to work with mailboxes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comment Created 7 years, 8 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 GLuint ReleaseServiceId(); 64 GLuint ReleaseServiceId();
65 GLuint service_id() const { return service_id_; } 65 GLuint service_id() const { return service_id_; }
66 GLenum min_filter() const { return min_filter_; } 66 GLenum min_filter() const { return min_filter_; }
67 GLenum mag_filter() const { return mag_filter_; } 67 GLenum mag_filter() const { return mag_filter_; }
68 GLenum wrap_s() const { return wrap_s_; } 68 GLenum wrap_s() const { return wrap_s_; }
69 GLenum wrap_t() const { return wrap_t_; } 69 GLenum wrap_t() const { return wrap_t_; }
70 GLenum usage() const { return usage_; } 70 GLenum usage() const { return usage_; }
71 71
72 bool immutable() const { return immutable_; } 72 bool immutable() const { return immutable_; }
73 73
74 void SetStreamTexture() { stream_texture_ = true; }
piman 2013/04/15 17:47:54 Should this just be passed through the constructor
no sievers 2013/04/15 18:54:30 Done.
75 bool IsStreamTexture() const { return stream_texture_; }
76
74 const LevelInfos& level_infos() const { 77 const LevelInfos& level_infos() const {
75 return level_infos_; 78 return level_infos_;
76 } 79 }
77 80
78 private: 81 private:
79 GLenum target_; 82 GLenum target_;
80 GLuint service_id_; 83 GLuint service_id_;
81 GLenum min_filter_; 84 GLenum min_filter_;
82 GLenum mag_filter_; 85 GLenum mag_filter_;
83 GLenum wrap_s_; 86 GLenum wrap_s_;
84 GLenum wrap_t_; 87 GLenum wrap_t_;
85 GLenum usage_; 88 GLenum usage_;
86 bool immutable_; 89 bool immutable_;
90 bool stream_texture_;
87 std::vector<std::vector<LevelInfo> > level_infos_; 91 std::vector<std::vector<LevelInfo> > level_infos_;
88 92
89 DISALLOW_COPY_AND_ASSIGN(TextureDefinition); 93 DISALLOW_COPY_AND_ASSIGN(TextureDefinition);
90 }; 94 };
91 95
92 } // namespage gles2 96 } // namespage gles2
93 } // namespace gpu 97 } // namespace gpu
94 98
95 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_DEFINITION_H_ 99 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_DEFINITION_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc ('k') | gpu/command_buffer/service/texture_definition.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698