| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_CMD_HELPER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_ |
| 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_ | 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_ |
| 7 | 7 |
| 8 #include "gpu/command_buffer/client/cmd_buffer_helper.h" | 8 #include "gpu/command_buffer/client/cmd_buffer_helper.h" |
| 9 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
| 10 | 10 |
| 11 namespace gpu { | 11 namespace gpu { |
| 12 namespace gles2 { | 12 namespace gles2 { |
| 13 | 13 |
| 14 // A class that helps write GL command buffers. | 14 // A class that helps write GL command buffers. |
| 15 class GLES2CmdHelper : public CommandBufferHelper { | 15 class GLES2CmdHelper : public CommandBufferHelper { |
| 16 public: | 16 public: |
| 17 explicit GLES2CmdHelper(gpu::CommandBuffer* command_buffer) | 17 explicit GLES2CmdHelper(CommandBuffer* command_buffer) |
| 18 : CommandBufferHelper(command_buffer) { | 18 : CommandBufferHelper(command_buffer) { |
| 19 } | 19 } |
| 20 virtual ~GLES2CmdHelper() { | 20 virtual ~GLES2CmdHelper() { |
| 21 } | 21 } |
| 22 | 22 |
| 23 // Include the auto-generated part of this class. We split this because it | 23 // Include the auto-generated part of this class. We split this because it |
| 24 // means we can easily edit the non-auto generated parts right here in this | 24 // means we can easily edit the non-auto generated parts right here in this |
| 25 // file instead of having to edit some template or the code generator. | 25 // file instead of having to edit some template or the code generator. |
| 26 #include "gpu/command_buffer/client/gles2_cmd_helper_autogen.h" | 26 #include "gpu/command_buffer/client/gles2_cmd_helper_autogen.h" |
| 27 | 27 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 private: | 68 private: |
| 69 DISALLOW_COPY_AND_ASSIGN(GLES2CmdHelper); | 69 DISALLOW_COPY_AND_ASSIGN(GLES2CmdHelper); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } // namespace gles2 | 72 } // namespace gles2 |
| 73 } // namespace gpu | 73 } // namespace gpu |
| 74 | 74 |
| 75 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_ | 75 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_ |
| 76 | 76 |
| OLD | NEW |