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

Side by Side Diff: command_buffer/service/cross/gapi_decoder.h

Issue 332036: move all O3D specific command buffer stuff to command_buffer::o3d... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 1 month 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 /* 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 19 matching lines...) Expand all
30 */ 30 */
31 31
32 32
33 // This file contains the GAPI decoder class. 33 // This file contains the GAPI decoder class.
34 34
35 #ifndef O3D_COMMAND_BUFFER_SERVICE_CROSS_GAPI_DECODER_H_ 35 #ifndef O3D_COMMAND_BUFFER_SERVICE_CROSS_GAPI_DECODER_H_
36 #define O3D_COMMAND_BUFFER_SERVICE_CROSS_GAPI_DECODER_H_ 36 #define O3D_COMMAND_BUFFER_SERVICE_CROSS_GAPI_DECODER_H_
37 37
38 #include "core/cross/types.h" 38 #include "core/cross/types.h"
39 #include "command_buffer/service/cross/cmd_parser.h" 39 #include "command_buffer/service/cross/cmd_parser.h"
40 #include "command_buffer/common/cross/cmd_buffer_format.h" 40 #include "command_buffer/common/cross/o3d_cmd_format.h"
41 41
42 namespace o3d { 42 namespace o3d {
43 namespace command_buffer { 43 namespace command_buffer {
44 44
45 class CommandBufferEngine;
46
47 namespace o3d {
48
45 class GAPIInterface; 49 class GAPIInterface;
46 class CommandBufferEngine;
47 50
48 // This class implements the AsyncAPIInterface interface, decoding GAPI 51 // This class implements the AsyncAPIInterface interface, decoding GAPI
49 // commands and sending them to a GAPI interface. 52 // commands and sending them to a GAPI interface.
50 class GAPIDecoder : public AsyncAPIInterface { 53 class GAPIDecoder : public AsyncAPIInterface {
51 public: 54 public:
52 typedef parse_error::ParseError ParseError; 55 typedef parse_error::ParseError ParseError;
53 56
54 explicit GAPIDecoder(GAPIInterface *gapi) : gapi_(gapi), engine_(NULL) {} 57 explicit GAPIDecoder(GAPIInterface *gapi) : gapi_(gapi), engine_(NULL) {}
55 virtual ~GAPIDecoder() {} 58 virtual ~GAPIDecoder() {}
56 59
(...skipping 18 matching lines...) Expand all
75 // check fails. Return a pointer to the data otherwise. 78 // check fails. Return a pointer to the data otherwise.
76 void *GetAddressAndCheckSize(unsigned int shm_id, 79 void *GetAddressAndCheckSize(unsigned int shm_id,
77 unsigned int offset, 80 unsigned int offset,
78 unsigned int size); 81 unsigned int size);
79 82
80 // Generate a member function prototype for each command in an automated and 83 // Generate a member function prototype for each command in an automated and
81 // typesafe way. 84 // typesafe way.
82 #define O3D_COMMAND_BUFFER_CMD_OP(name) \ 85 #define O3D_COMMAND_BUFFER_CMD_OP(name) \
83 ParseError Handle ## name( \ 86 ParseError Handle ## name( \
84 unsigned int arg_count, \ 87 unsigned int arg_count, \
85 const cmd::name& args); \ 88 const o3d::name& args); \
86 89
87 O3D_COMMAND_BUFFER_CMDS(O3D_COMMAND_BUFFER_CMD_OP) 90 O3D_COMMAND_BUFFER_CMDS(O3D_COMMAND_BUFFER_CMD_OP)
88 91
89 #undef O3D_COMMAND_BUFFER_CMD_OP 92 #undef O3D_COMMAND_BUFFER_CMD_OP
90 93
91 GAPIInterface *gapi_; 94 GAPIInterface *gapi_;
92 CommandBufferEngine *engine_; 95 CommandBufferEngine *engine_;
93 }; 96 };
94 97
98 } // namespace o3d
95 } // namespace command_buffer 99 } // namespace command_buffer
96 } // namespace o3d 100 } // namespace o3d
97 101
98 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_GAPI_DECODER_H_ 102 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_GAPI_DECODER_H_
OLDNEW
« no previous file with comments | « command_buffer/service/cross/cmd_parser.cc ('k') | command_buffer/service/cross/gapi_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698