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

Side by Side Diff: content/common/gpu/gpu_channel.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 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
« no previous file with comments | « content/child/npapi/webplugin_delegate_impl_mac.mm ('k') | content/common/gpu/gpu_channel.cc » ('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_GPU_CHANNEL_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 // The message_queue_ is used to handle messages on the main thread. 368 // The message_queue_ is used to handle messages on the main thread.
369 scoped_refptr<GpuChannelMessageQueue> message_queue_; 369 scoped_refptr<GpuChannelMessageQueue> message_queue_;
370 IPC::Sender* sender_; 370 IPC::Sender* sender_;
371 base::ProcessId peer_pid_; 371 base::ProcessId peer_pid_;
372 gpu::SyncPointManager* sync_point_manager_; 372 gpu::SyncPointManager* sync_point_manager_;
373 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 373 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
374 scoped_refptr<gpu::PreemptionFlag> preempting_flag_; 374 scoped_refptr<gpu::PreemptionFlag> preempting_flag_;
375 std::vector<scoped_refptr<IPC::MessageFilter>> channel_filters_; 375 std::vector<scoped_refptr<IPC::MessageFilter>> channel_filters_;
376 376
377 // This timer is created and destroyed on the IO thread. 377 // This timer is created and destroyed on the IO thread.
378 scoped_ptr<base::OneShotTimer<GpuChannelMessageFilter>> timer_; 378 scoped_ptr<base::OneShotTimer> timer_;
379 379
380 bool a_stub_is_descheduled_; 380 bool a_stub_is_descheduled_;
381 381
382 // True if this channel can create future sync points. 382 // True if this channel can create future sync points.
383 bool future_sync_points_; 383 bool future_sync_points_;
384 }; 384 };
385 385
386 struct GpuChannelMessage { 386 struct GpuChannelMessage {
387 uint32_t order_number; 387 uint32_t order_number;
388 base::TimeTicks time_received; 388 base::TimeTicks time_received;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 465
466 base::WeakPtr<GpuChannel> gpu_channel_; 466 base::WeakPtr<GpuChannel> gpu_channel_;
467 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 467 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
468 468
469 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue); 469 DISALLOW_COPY_AND_ASSIGN(GpuChannelMessageQueue);
470 }; 470 };
471 471
472 } // namespace content 472 } // namespace content
473 473
474 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 474 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « content/child/npapi/webplugin_delegate_impl_mac.mm ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698