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

Side by Side Diff: content/common/gpu/client/gpu_channel_host.cc

Issue 17074009: Created multi-process-friendly PowerMonitor interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing Feedback Created 7 years, 5 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 #include "content/common/gpu/client/gpu_channel_host.h" 5 #include "content/common/gpu/client/gpu_channel_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/message_loop/message_loop_proxy.h" 12 #include "base/message_loop/message_loop_proxy.h"
13 #include "base/posix/eintr_wrapper.h" 13 #include "base/posix/eintr_wrapper.h"
14 #include "base/power_monitor/power_monitor.h"
14 #include "base/threading/thread_restrictions.h" 15 #include "base/threading/thread_restrictions.h"
15 #include "content/common/gpu/client/command_buffer_proxy_impl.h" 16 #include "content/common/gpu/client/command_buffer_proxy_impl.h"
16 #include "content/common/gpu/gpu_messages.h" 17 #include "content/common/gpu/gpu_messages.h"
17 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
18 #include "gpu/command_buffer/common/mailbox.h" 19 #include "gpu/command_buffer/common/mailbox.h"
19 #include "ipc/ipc_sync_message_filter.h" 20 #include "ipc/ipc_sync_message_filter.h"
20 21
21 #if defined(OS_WIN) 22 #if defined(OS_WIN)
22 #include "content/public/common/sandbox_init.h" 23 #include "content/public/common/sandbox_init.h"
23 #endif 24 #endif
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 AutoLock lock(lock_); 397 AutoLock lock(lock_);
397 DCHECK_LE(names.size(), requested_mailboxes_); 398 DCHECK_LE(names.size(), requested_mailboxes_);
398 requested_mailboxes_ -= names.size(); 399 requested_mailboxes_ -= names.size();
399 mailbox_name_pool_.insert(mailbox_name_pool_.end(), 400 mailbox_name_pool_.insert(mailbox_name_pool_.end(),
400 names.begin(), 401 names.begin(),
401 names.end()); 402 names.end());
402 } 403 }
403 404
404 405
405 } // namespace content 406 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698