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

Side by Side Diff: gpu/command_buffer/client/cmd_buffer_helper.cc

Issue 29303007: android: Enable -Wunused-const-variable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 2 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) 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 buffer helper class. 5 // This file contains the implementation of the command buffer helper class.
6 6
7 #include "gpu/command_buffer/client/cmd_buffer_helper.h" 7 #include "gpu/command_buffer/client/cmd_buffer_helper.h"
8 #include "gpu/command_buffer/common/command_buffer.h" 8 #include "gpu/command_buffer/common/command_buffer.h"
9 #include "gpu/command_buffer/common/trace_event.h" 9 #include "gpu/command_buffer/common/trace_event.h"
10 10
11 namespace gpu { 11 namespace gpu {
12 12
13 namespace {
14 const int kCommandsPerFlushCheck = 100; 13 const int kCommandsPerFlushCheck = 100;
14
15 #if !defined(OS_ANDROID)
15 const double kFlushDelay = 1.0 / (5.0 * 60.0); 16 const double kFlushDelay = 1.0 / (5.0 * 60.0);
16 } 17 #endif
17 18
18 CommandBufferHelper::CommandBufferHelper(CommandBuffer* command_buffer) 19 CommandBufferHelper::CommandBufferHelper(CommandBuffer* command_buffer)
19 : command_buffer_(command_buffer), 20 : command_buffer_(command_buffer),
20 ring_buffer_id_(-1), 21 ring_buffer_id_(-1),
21 ring_buffer_size_(0), 22 ring_buffer_size_(0),
22 entries_(NULL), 23 entries_(NULL),
23 total_entry_count_(0), 24 total_entry_count_(0),
24 token_(0), 25 token_(0),
25 put_(0), 26 put_(0),
26 last_put_sent_(0), 27 last_put_sent_(0),
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 CommandBufferEntry* space = &entries_[put_]; 268 CommandBufferEntry* space = &entries_[put_];
268 put_ += entries; 269 put_ += entries;
269 GPU_DCHECK_LE(put_, total_entry_count_); 270 GPU_DCHECK_LE(put_, total_entry_count_);
270 if (put_ == total_entry_count_) { 271 if (put_ == total_entry_count_) {
271 put_ = 0; 272 put_ = 0;
272 } 273 }
273 return space; 274 return space;
274 } 275 }
275 276
276 } // namespace gpu 277 } // namespace gpu
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_popup_controller_impl.cc ('k') | media/filters/stream_parser_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698