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

Side by Side Diff: gpu/command_buffer/service/command_buffer_service.h

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 11 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
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | jingle/notifier/base/task_pump.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/memory/linked_ptr.h" 12 #include "base/memory/linked_ptr.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/shared_memory.h" 14 #include "base/shared_memory.h"
15 #include "base/task.h"
16 #include "gpu/command_buffer/common/command_buffer.h" 15 #include "gpu/command_buffer/common/command_buffer.h"
17 16
18 namespace gpu { 17 namespace gpu {
19 18
20 // An object that implements a shared memory command buffer and a synchronous 19 // An object that implements a shared memory command buffer and a synchronous
21 // API to manage the put and get pointers. 20 // API to manage the put and get pointers.
22 class CommandBufferService : public CommandBuffer { 21 class CommandBufferService : public CommandBuffer {
23 public: 22 public:
24 typedef base::Callback<bool(int32)> GetBufferChangedCallback; 23 typedef base::Callback<bool(int32)> GetBufferChangedCallback;
25 CommandBufferService(); 24 CommandBufferService();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 int32 token_; 70 int32 token_;
72 uint32 generation_; 71 uint32 generation_;
73 error::Error error_; 72 error::Error error_;
74 error::ContextLostReason context_lost_reason_; 73 error::ContextLostReason context_lost_reason_;
75 size_t shared_memory_bytes_allocated_; 74 size_t shared_memory_bytes_allocated_;
76 }; 75 };
77 76
78 } // namespace gpu 77 } // namespace gpu
79 78
80 #endif // GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_ 79 #endif // GPU_COMMAND_BUFFER_SERVICE_COMMAND_BUFFER_SERVICE_H_
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | jingle/notifier/base/task_pump.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698