OLD | NEW |
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 // This file contains the implementation of the command parser. | 5 // This file contains the implementation of the command parser. |
6 | 6 |
7 #include "gpu/command_buffer/service/cmd_parser.h" | 7 #include "gpu/command_buffer/service/cmd_parser.h" |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/debug/trace_event.h" | 10 #include "base/trace_event/trace_event.h" |
11 | 11 |
12 namespace gpu { | 12 namespace gpu { |
13 | 13 |
14 CommandParser::CommandParser(AsyncAPIInterface* handler) | 14 CommandParser::CommandParser(AsyncAPIInterface* handler) |
15 : get_(0), | 15 : get_(0), |
16 put_(0), | 16 put_(0), |
17 buffer_(NULL), | 17 buffer_(NULL), |
18 entry_count_(0), | 18 entry_count_(0), |
19 handler_(handler) { | 19 handler_(handler) { |
20 } | 20 } |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 } | 107 } |
108 } | 108 } |
109 | 109 |
110 if (entries_processed) | 110 if (entries_processed) |
111 *entries_processed = process_pos; | 111 *entries_processed = process_pos; |
112 | 112 |
113 return result; | 113 return result; |
114 } | 114 } |
115 | 115 |
116 } // namespace gpu | 116 } // namespace gpu |
OLD | NEW |