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

Side by Side Diff: gpu/command_buffer/service/common_decoder.cc

Issue 7458010: Revert 93066 - Execute all GL commands up to the put offset reported by a each flush.This means g... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
OLDNEW
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
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
333 } // namespace gpu 339 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/command_buffer_service.cc ('k') | gpu/command_buffer/service/common_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698