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

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

Issue 11194042: Implement TextureImageTransportSurface using texture mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_aura DCHECK() 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"
11 #include "gpu/command_buffer/service/gl_utils.h" 11 #include "gpu/command_buffer/service/gl_utils.h"
12 #include "gpu/gpu_export.h" 12 #include "gpu/gpu_export.h"
13 13
14 namespace gpu { 14 namespace gpu {
15 namespace gles2 { 15 namespace gles2 {
16 16
17 // A saved definition of a texture that still exists in the underlying 17 // A saved definition of a texture that still exists in the underlying
18 // GLShareGroup and can be used to redefine a client visible texture in any 18 // GLShareGroup and can be used to redefine a client visible texture in any
19 // context using the same GLShareGroup with the corresponding service ID. 19 // context using the same GLShareGroup with the corresponding service ID.
20 class GPU_EXPORT TextureDefinition { 20 class GPU_EXPORT TextureDefinition {
21 public: 21 public:
22 struct LevelInfo { 22 struct GPU_EXPORT LevelInfo {
23 LevelInfo(GLenum target, 23 LevelInfo(GLenum target,
24 GLenum internal_format, 24 GLenum internal_format,
25 GLsizei width, 25 GLsizei width,
26 GLsizei height, 26 GLsizei height,
27 GLsizei depth, 27 GLsizei depth,
28 GLint border, 28 GLint border,
29 GLenum format, 29 GLenum format,
30 GLenum type, 30 GLenum type,
31 bool cleared); 31 bool cleared);
32 LevelInfo();
33
32 GLenum target; 34 GLenum target;
33 GLenum internal_format; 35 GLenum internal_format;
34 GLsizei width; 36 GLsizei width;
35 GLsizei height; 37 GLsizei height;
36 GLsizei depth; 38 GLsizei depth;
37 GLint border; 39 GLint border;
38 GLenum format; 40 GLenum format;
39 GLenum type; 41 GLenum type;
40 bool cleared; 42 bool cleared;
41 }; 43 };
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 bool immutable_; 85 bool immutable_;
84 std::vector<std::vector<LevelInfo> > level_infos_; 86 std::vector<std::vector<LevelInfo> > level_infos_;
85 87
86 DISALLOW_COPY_AND_ASSIGN(TextureDefinition); 88 DISALLOW_COPY_AND_ASSIGN(TextureDefinition);
87 }; 89 };
88 90
89 } // namespage gles2 91 } // namespage gles2
90 } // namespace gpu 92 } // namespace gpu
91 93
92 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_DEFINITION_H_ 94 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_DEFINITION_H_
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