OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/gpu_process_host_ui_shim.h" | 5 #include "chrome/browser/gpu_process_host_ui_shim.h" |
6 | 6 |
7 #include "chrome/browser/browser_thread.h" | 7 #include "chrome/browser/browser_thread.h" |
8 #include "chrome/browser/gpu_process_host.h" | 8 #include "chrome/browser/gpu_process_host.h" |
9 #include "chrome/browser/renderer_host/render_process_host.h" | 9 #include "chrome/browser/renderer_host/render_process_host.h" |
10 #include "chrome/browser/renderer_host/render_view_host.h" | 10 #include "chrome/browser/renderer_host/render_view_host.h" |
11 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 11 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
12 #include "chrome/common/child_process_logging.h" | 12 #include "chrome/common/child_process_logging.h" |
13 #include "chrome/common/gpu_messages.h" | 13 #include "chrome/common/gpu_messages.h" |
14 | 14 |
15 #if defined(OS_LINUX) | 15 #if defined(OS_LINUX) |
16 // These two #includes need to come after gpu_messages.h. | 16 // These two #includes need to come after gpu_messages.h. |
17 #include <gdk/gdkwindow.h> // NOLINT | 17 #include <gdk/gdkwindow.h> // NOLINT |
18 #include <gdk/gdkx.h> // NOLINT | 18 #include <gdk/gdkx.h> // NOLINT |
19 #include "ui/base/x/x11_util.h" | 19 #include "ui/base/x/x11_util.h" |
20 #include "gfx/gtk_native_view_id_manager.h" | 20 #include "ui/gfx/gtk_native_view_id_manager.h" |
21 #include "gfx/size.h" | 21 #include "ui/gfx/size.h" |
22 #endif // defined(OS_LINUX) | 22 #endif // defined(OS_LINUX) |
23 | 23 |
24 // Tasks used by this file | 24 // Tasks used by this file |
25 namespace { | 25 namespace { |
26 | 26 |
27 class SendOnIOThreadTask : public Task { | 27 class SendOnIOThreadTask : public Task { |
28 public: | 28 public: |
29 explicit SendOnIOThreadTask(IPC::Message* msg) : msg_(msg) { | 29 explicit SendOnIOThreadTask(IPC::Message* msg) : msg_(msg) { |
30 } | 30 } |
31 | 31 |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 int render_view_id) { | 257 int render_view_id) { |
258 RenderViewHost* host = RenderViewHost::FromID(renderer_id, | 258 RenderViewHost* host = RenderViewHost::FromID(renderer_id, |
259 render_view_id); | 259 render_view_id); |
260 if (!host) { | 260 if (!host) { |
261 return; | 261 return; |
262 } | 262 } |
263 host->ScheduleComposite(); | 263 host->ScheduleComposite(); |
264 } | 264 } |
265 | 265 |
266 #endif | 266 #endif |
OLD | NEW |