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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.h

Issue 465040: Added CommandBufferClient, CommandBufferStub and some IPC messages.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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_CLIENT_GLES2_IMPLEMENTATION_H 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
7 7
8 #include "base/shared_memory.h" 8 #include "base/shared_memory.h"
9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 9 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
10 #include "gpu/command_buffer/client/gles2_cmd_helper.h" 10 #include "gpu/command_buffer/client/gles2_cmd_helper.h"
11 #include "gpu/command_buffer/client/id_allocator.h" 11 #include "gpu/command_buffer/client/id_allocator.h"
12 #include "gpu/command_buffer/client/fenced_allocator.h" 12 #include "gpu/command_buffer/client/fenced_allocator.h"
13 13
14 namespace command_buffer { 14 namespace gpu {
15 namespace gles2 { 15 namespace gles2 {
16 16
17 // This class emulates GLES2 over command buffers. It can be used by a client 17 // This class emulates GLES2 over command buffers. It can be used by a client
18 // program so that the program does not need deal with shared memory and command 18 // program so that the program does not need deal with shared memory and command
19 // buffer management. See gl2_lib.h. Note that there is a performance gain to 19 // buffer management. See gl2_lib.h. Note that there is a performance gain to
20 // be had by changing your code to use command buffers directly by using the 20 // be had by changing your code to use command buffers directly by using the
21 // GLES2CmdHelper but that entails changing your code to use and deal with 21 // GLES2CmdHelper but that entails changing your code to use and deal with
22 // shared memory and synchronization issues. 22 // shared memory and synchronization issues.
23 class GLES2Implementation { 23 class GLES2Implementation {
24 public: 24 public:
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 GLint pack_alignment_; 80 GLint pack_alignment_;
81 81
82 // unpack alignment as last set by glPixelStorei 82 // unpack alignment as last set by glPixelStorei
83 GLint unpack_alignment_; 83 GLint unpack_alignment_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(GLES2Implementation); 85 DISALLOW_COPY_AND_ASSIGN(GLES2Implementation);
86 }; 86 };
87 87
88 88
89 } // namespace gles2 89 } // namespace gles2
90 } // namespace command_buffer 90 } // namespace gpu
91 91
92 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H 92 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
93 93
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_demo.cc ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698