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

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

Issue 9662026: Move constructor and destructor of GLES2CmdHelper out of line (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export Created 8 years, 9 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
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_cmd_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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_export.h"
8 #include "../client/cmd_buffer_helper.h" 9 #include "../client/cmd_buffer_helper.h"
9 #include "../common/gles2_cmd_format.h" 10 #include "../common/gles2_cmd_format.h"
10 11
11 namespace gpu { 12 namespace gpu {
12 namespace gles2 { 13 namespace gles2 {
13 14
14 // A class that helps write GL command buffers. 15 // A class that helps write GL command buffers.
15 class GLES2CmdHelper : public CommandBufferHelper { 16 class GPU_EXPORT GLES2CmdHelper : public CommandBufferHelper {
16 public: 17 public:
17 explicit GLES2CmdHelper(CommandBuffer* command_buffer) 18 explicit GLES2CmdHelper(CommandBuffer* command_buffer);
18 : CommandBufferHelper(command_buffer) { 19 virtual ~GLES2CmdHelper();
19 }
20 virtual ~GLES2CmdHelper() {
21 }
22 20
23 // Include the auto-generated part of this class. We split this because it 21 // 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 22 // 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. 23 // file instead of having to edit some template or the code generator.
26 #include "../client/gles2_cmd_helper_autogen.h" 24 #include "../client/gles2_cmd_helper_autogen.h"
27 25
28 // Helpers that could not be auto-generated. 26 // Helpers that could not be auto-generated.
29 // TODO(gman): Auto generate these. 27 // TODO(gman): Auto generate these.
30 28
31 void GetAttribLocation( 29 void GetAttribLocation(
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 92
95 private: 93 private:
96 DISALLOW_COPY_AND_ASSIGN(GLES2CmdHelper); 94 DISALLOW_COPY_AND_ASSIGN(GLES2CmdHelper);
97 }; 95 };
98 96
99 } // namespace gles2 97 } // namespace gles2
100 } // namespace gpu 98 } // namespace gpu
101 99
102 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_ 100 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_H_
103 101
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_cmd_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698