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

Side by Side Diff: content/common/gpu/client/command_buffer_proxy_impl.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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
« no previous file with comments | « content/child/worker_task_runner.cc ('k') | content/common/gpu/gpu_command_buffer_stub.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 CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 // Try to read an updated copy of the state from shared memory. 190 // Try to read an updated copy of the state from shared memory.
191 void TryUpdateState(); 191 void TryUpdateState();
192 192
193 // The shared memory area used to update state. 193 // The shared memory area used to update state.
194 gpu::CommandBufferSharedState* shared_state() const; 194 gpu::CommandBufferSharedState* shared_state() const;
195 195
196 base::Lock* lock_; 196 base::Lock* lock_;
197 197
198 // Unowned list of DeletionObservers. 198 // Unowned list of DeletionObservers.
199 ObserverList<DeletionObserver> deletion_observers_; 199 base::ObserverList<DeletionObserver> deletion_observers_;
200 200
201 // The last cached state received from the service. 201 // The last cached state received from the service.
202 State last_state_; 202 State last_state_;
203 203
204 // The shared memory area used to update state. 204 // The shared memory area used to update state.
205 scoped_ptr<base::SharedMemory> shared_state_shm_; 205 scoped_ptr<base::SharedMemory> shared_state_shm_;
206 206
207 // |*this| is owned by |*channel_| and so is always outlived by it, so using a 207 // |*this| is owned by |*channel_| and so is always outlived by it, so using a
208 // raw pointer is ok. 208 // raw pointer is ok.
209 GpuChannelHost* channel_; 209 GpuChannelHost* channel_;
(...skipping 21 matching lines...) Expand all
231 231
232 SwapBuffersCompletionCallback swap_buffers_completion_callback_; 232 SwapBuffersCompletionCallback swap_buffers_completion_callback_;
233 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_; 233 UpdateVSyncParametersCallback update_vsync_parameters_completion_callback_;
234 234
235 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); 235 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl);
236 }; 236 };
237 237
238 } // namespace content 238 } // namespace content
239 239
240 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 240 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/worker_task_runner.cc ('k') | content/common/gpu/gpu_command_buffer_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698