OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "gpu/command_buffer/service/common_decoder.h" | 5 #include "gpu/command_buffer/service/common_decoder.h" |
6 #include "gpu/command_buffer/service/cmd_buffer_engine.h" | 6 #include "gpu/command_buffer/service/cmd_buffer_engine.h" |
7 | 7 |
8 namespace gpu { | 8 namespace gpu { |
9 | 9 |
10 CommonDecoder::Bucket::Bucket() : size_(0) {} | 10 CommonDecoder::Bucket::Bucket() : size_(0) {} |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 return error::kInvalidArguments; | 323 return error::kInvalidArguments; |
324 } | 324 } |
325 const void* src = bucket->GetData(offset, size); | 325 const void* src = bucket->GetData(offset, size); |
326 if (!src) { | 326 if (!src) { |
327 return error::kInvalidArguments; | 327 return error::kInvalidArguments; |
328 } | 328 } |
329 memcpy(data, src, size); | 329 memcpy(data, src, size); |
330 return error::kNoError; | 330 return error::kNoError; |
331 } | 331 } |
332 | 332 |
333 error::Error CommonDecoder::HandleYieldScheduler( | |
334 uint32 immediate_data_size, | |
335 const cmd::YieldScheduler& args) { | |
336 return error::kYield; | |
337 } | |
338 | |
339 } // namespace gpu | 333 } // namespace gpu |
OLD | NEW |