OLD | NEW |
1 // TODO(jam): move this file to src/content once we have an interface that the | 1 // TODO(jam): move this file to src/content once we have an interface that the |
2 // embedder provides. We can then use it to get the resource and resize the | 2 // embedder provides. We can then use it to get the resource and resize the |
3 // window. | 3 // window. |
4 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 4 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
5 // Use of this source code is governed by a BSD-style license that can be | 5 // Use of this source code is governed by a BSD-style license that can be |
6 // found in the LICENSE file. | 6 // found in the LICENSE file. |
7 | 7 |
8 #include "chrome/browser/gpu_process_host_ui_shim.h" | 8 #include "chrome/browser/gpu_process_host_ui_shim.h" |
9 | 9 |
10 #include "base/id_map.h" | 10 #include "base/id_map.h" |
11 #include "chrome/common/gpu_messages.h" | |
12 #include "chrome/browser/gpu_data_manager.h" | 11 #include "chrome/browser/gpu_data_manager.h" |
13 #include "content/browser/browser_thread.h" | 12 #include "content/browser/browser_thread.h" |
14 #include "content/browser/gpu_process_host.h" | 13 #include "content/browser/gpu_process_host.h" |
15 #include "content/browser/renderer_host/render_process_host.h" | 14 #include "content/browser/renderer_host/render_process_host.h" |
16 #include "content/browser/renderer_host/render_view_host.h" | 15 #include "content/browser/renderer_host/render_view_host.h" |
17 #include "content/browser/renderer_host/render_widget_host_view.h" | 16 #include "content/browser/renderer_host/render_widget_host_view.h" |
| 17 #include "content/common/gpu_messages.h" |
18 | 18 |
19 #if defined(OS_LINUX) | 19 #if defined(OS_LINUX) |
20 // These two #includes need to come after gpu_messages.h. | 20 // These two #includes need to come after gpu_messages.h. |
21 #include <gdk/gdkwindow.h> // NOLINT | 21 #include <gdk/gdkwindow.h> // NOLINT |
22 #include <gdk/gdkx.h> // NOLINT | 22 #include <gdk/gdkx.h> // NOLINT |
23 #include "ui/base/x/x11_util.h" | 23 #include "ui/base/x/x11_util.h" |
24 #include "ui/gfx/gtk_native_view_id_manager.h" | 24 #include "ui/gfx/gtk_native_view_id_manager.h" |
25 #include "ui/gfx/size.h" | 25 #include "ui/gfx/size.h" |
26 #endif // defined(OS_LINUX) | 26 #endif // defined(OS_LINUX) |
27 | 27 |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 RenderViewHost* host = RenderViewHost::FromID(renderer_id, | 525 RenderViewHost* host = RenderViewHost::FromID(renderer_id, |
526 render_view_id); | 526 render_view_id); |
527 if (!host) { | 527 if (!host) { |
528 return; | 528 return; |
529 } | 529 } |
530 host->ScheduleComposite(); | 530 host->ScheduleComposite(); |
531 } | 531 } |
532 | 532 |
533 #endif | 533 #endif |
534 | 534 |
OLD | NEW |