OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 11 matching lines...) Expand all Loading... |
22 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 22 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
23 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 23 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 */ | 30 */ |
31 | 31 |
32 #ifndef GPU_COMMAND_BUFFER_SERVICE_CROSS_COMMON_DECODER_H_ | 32 #ifndef GPU_COMMAND_BUFFER_SERVICE_COMMON_DECODER_H_ |
33 #define GPU_COMMAND_BUFFER_SERVICE_CROSS_COMMON_DECODER_H_ | 33 #define GPU_COMMAND_BUFFER_SERVICE_COMMON_DECODER_H_ |
34 | 34 |
35 #include <map> | 35 #include <map> |
36 #include "base/linked_ptr.h" | 36 #include "base/linked_ptr.h" |
37 #include "base/scoped_ptr.h" | 37 #include "base/scoped_ptr.h" |
38 #include "gpu/command_buffer/service/cmd_parser.h" | 38 #include "gpu/command_buffer/service/cmd_parser.h" |
39 | 39 |
40 namespace command_buffer { | 40 namespace gpu { |
41 | 41 |
42 class CommandBufferEngine; | 42 class CommandBufferEngine; |
43 | 43 |
44 // This class is a helper base class for implementing the common parts of the | 44 // This class is a helper base class for implementing the common parts of the |
45 // o3d/gl2 command buffer decoder. | 45 // o3d/gl2 command buffer decoder. |
46 class CommonDecoder : public AsyncAPIInterface { | 46 class CommonDecoder : public AsyncAPIInterface { |
47 public: | 47 public: |
48 typedef parse_error::ParseError ParseError; | 48 typedef parse_error::ParseError ParseError; |
49 | 49 |
50 // A bucket is a buffer to help collect memory across a command buffer. When | 50 // A bucket is a buffer to help collect memory across a command buffer. When |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 COMMON_COMMAND_BUFFER_CMDS(COMMON_COMMAND_BUFFER_CMD_OP) | 169 COMMON_COMMAND_BUFFER_CMDS(COMMON_COMMAND_BUFFER_CMD_OP) |
170 | 170 |
171 #undef COMMON_COMMAND_BUFFER_CMD_OP | 171 #undef COMMON_COMMAND_BUFFER_CMD_OP |
172 | 172 |
173 CommandBufferEngine* engine_; | 173 CommandBufferEngine* engine_; |
174 | 174 |
175 typedef std::map<uint32, linked_ptr<Bucket> > BucketMap; | 175 typedef std::map<uint32, linked_ptr<Bucket> > BucketMap; |
176 BucketMap buckets_; | 176 BucketMap buckets_; |
177 }; | 177 }; |
178 | 178 |
179 } // namespace command_buffer | 179 } // namespace gpu |
180 | 180 |
181 #endif // GPU_COMMAND_BUFFER_SERVICE_CROSS_COMMON_DECODER_H_ | 181 #endif // GPU_COMMAND_BUFFER_SERVICE_COMMON_DECODER_H_ |
182 | 182 |
OLD | NEW |