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

Side by Side Diff: content/browser/gpu_process_host_ui_shim.cc

Issue 6862002: Merge gpu_trace_event back into base/debug/trace_event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge to r83717 Created 9 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/gpu_process_host_ui_shim.h" 5 #include "content/browser/gpu_process_host_ui_shim.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/id_map.h" 8 #include "base/id_map.h"
9 #include "base/debug/trace_event.h"
9 #include "base/process_util.h" 10 #include "base/process_util.h"
10 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
11 #include "chrome/browser/io_thread.h" 12 #include "chrome/browser/io_thread.h"
12 #include "content/browser/browser_thread.h" 13 #include "content/browser/browser_thread.h"
13 #include "content/browser/gpu_data_manager.h" 14 #include "content/browser/gpu_data_manager.h"
14 #include "content/browser/gpu_process_host.h" 15 #include "content/browser/gpu_process_host.h"
15 #include "content/browser/renderer_host/render_process_host.h" 16 #include "content/browser/renderer_host/render_process_host.h"
16 #include "content/browser/renderer_host/render_view_host.h" 17 #include "content/browser/renderer_host/render_view_host.h"
17 #include "content/browser/renderer_host/render_widget_host_view.h" 18 #include "content/browser/renderer_host/render_widget_host_view.h"
18 #include "content/common/content_switches.h" 19 #include "content/common/content_switches.h"
19 #include "content/common/gpu/gpu_messages.h" 20 #include "content/common/gpu/gpu_messages.h"
20 #include "gpu/common/gpu_trace_event.h"
21 21
22 #if defined(OS_LINUX) 22 #if defined(OS_LINUX)
23 // These two #includes need to come after gpu_messages.h. 23 // These two #includes need to come after gpu_messages.h.
24 #include <gdk/gdkwindow.h> // NOLINT 24 #include <gdk/gdkwindow.h> // NOLINT
25 #include <gdk/gdkx.h> // NOLINT 25 #include <gdk/gdkx.h> // NOLINT
26 #include "ui/base/x/x11_util.h" 26 #include "ui/base/x/x11_util.h"
27 #include "ui/gfx/gtk_native_view_id_manager.h" 27 #include "ui/gfx/gtk_native_view_id_manager.h"
28 #include "ui/gfx/size.h" 28 #include "ui/gfx/size.h"
29 #endif // defined(OS_LINUX) 29 #endif // defined(OS_LINUX)
30 namespace { 30 namespace {
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 int render_view_id) { 337 int render_view_id) {
338 RenderViewHost* host = RenderViewHost::FromID(renderer_id, 338 RenderViewHost* host = RenderViewHost::FromID(renderer_id,
339 render_view_id); 339 render_view_id);
340 if (!host) { 340 if (!host) {
341 return; 341 return;
342 } 342 }
343 host->ScheduleComposite(); 343 host->ScheduleComposite();
344 } 344 }
345 345
346 #endif 346 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698