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

Side by Side Diff: content/common/gpu/gpu_command_buffer_stub.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
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_GPU_COMMAND_BUFFER_STUB_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 scoped_refptr<gfx::GLSurface> surface_; 259 scoped_refptr<gfx::GLSurface> surface_;
260 260
261 scoped_ptr<GpuMemoryManagerClientState> memory_manager_client_state_; 261 scoped_ptr<GpuMemoryManagerClientState> memory_manager_client_state_;
262 // The last memory allocation received from the GpuMemoryManager (used to 262 // The last memory allocation received from the GpuMemoryManager (used to
263 // elide redundant work). 263 // elide redundant work).
264 bool last_memory_allocation_valid_; 264 bool last_memory_allocation_valid_;
265 gpu::MemoryAllocation last_memory_allocation_; 265 gpu::MemoryAllocation last_memory_allocation_;
266 266
267 GpuWatchdog* watchdog_; 267 GpuWatchdog* watchdog_;
268 268
269 ObserverList<DestructionObserver> destruction_observers_; 269 base::ObserverList<DestructionObserver> destruction_observers_;
270 270
271 // A queue of sync points associated with this stub. 271 // A queue of sync points associated with this stub.
272 std::deque<uint32> sync_points_; 272 std::deque<uint32> sync_points_;
273 int sync_point_wait_count_; 273 int sync_point_wait_count_;
274 274
275 bool delayed_work_scheduled_; 275 bool delayed_work_scheduled_;
276 uint64 previous_messages_processed_; 276 uint64 previous_messages_processed_;
277 base::TimeTicks last_idle_time_; 277 base::TimeTicks last_idle_time_;
278 278
279 scoped_refptr<gpu::PreemptionFlag> preemption_flag_; 279 scoped_refptr<gpu::PreemptionFlag> preemption_flag_;
280 280
281 LatencyInfoCallback latency_info_callback_; 281 LatencyInfoCallback latency_info_callback_;
282 282
283 GURL active_url_; 283 GURL active_url_;
284 size_t active_url_hash_; 284 size_t active_url_hash_;
285 285
286 size_t total_gpu_memory_; 286 size_t total_gpu_memory_;
287 scoped_ptr<WaitForCommandState> wait_for_token_; 287 scoped_ptr<WaitForCommandState> wait_for_token_;
288 scoped_ptr<WaitForCommandState> wait_for_get_offset_; 288 scoped_ptr<WaitForCommandState> wait_for_get_offset_;
289 289
290 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 290 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
291 }; 291 };
292 292
293 } // namespace content 293 } // namespace content
294 294
295 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 295 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy_impl.h ('k') | content/public/test/mock_download_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698