OLD | NEW |
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/renderer/render_widget_fullscreen_pepper.h" | 5 #include "content/renderer/render_widget_fullscreen_pepper.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "content/common/gpu/client/gpu_channel_host.h" | |
15 #include "content/common/view_messages.h" | 14 #include "content/common/view_messages.h" |
16 #include "content/public/common/content_switches.h" | 15 #include "content/public/common/content_switches.h" |
17 #include "content/renderer/gpu/render_widget_compositor.h" | 16 #include "content/renderer/gpu/render_widget_compositor.h" |
18 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" | 17 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
19 #include "content/renderer/render_thread_impl.h" | 18 #include "content/renderer/render_thread_impl.h" |
| 19 #include "gpu/ipc/client/gpu_channel_host.h" |
20 #include "skia/ext/platform_canvas.h" | 20 #include "skia/ext/platform_canvas.h" |
21 #include "third_party/WebKit/public/platform/WebCanvas.h" | 21 #include "third_party/WebKit/public/platform/WebCanvas.h" |
22 #include "third_party/WebKit/public/platform/WebCursorInfo.h" | 22 #include "third_party/WebKit/public/platform/WebCursorInfo.h" |
23 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 23 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
24 #include "third_party/WebKit/public/platform/WebLayer.h" | 24 #include "third_party/WebKit/public/platform/WebLayer.h" |
25 #include "third_party/WebKit/public/platform/WebSize.h" | 25 #include "third_party/WebKit/public/platform/WebSize.h" |
26 #include "third_party/WebKit/public/web/WebWidget.h" | 26 #include "third_party/WebKit/public/web/WebWidget.h" |
27 #include "ui/gfx/geometry/size_conversions.h" | 27 #include "ui/gfx/geometry/size_conversions.h" |
28 #include "ui/gl/gpu_preference.h" | 28 #include "ui/gl/gpu_preference.h" |
29 | 29 |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 GURL RenderWidgetFullscreenPepper::GetURLForGraphicsContext3D() { | 382 GURL RenderWidgetFullscreenPepper::GetURLForGraphicsContext3D() { |
383 return active_url_; | 383 return active_url_; |
384 } | 384 } |
385 | 385 |
386 void RenderWidgetFullscreenPepper::OnDeviceScaleFactorChanged() { | 386 void RenderWidgetFullscreenPepper::OnDeviceScaleFactorChanged() { |
387 if (compositor_) | 387 if (compositor_) |
388 compositor_->setDeviceScaleFactor(device_scale_factor_); | 388 compositor_->setDeviceScaleFactor(device_scale_factor_); |
389 } | 389 } |
390 | 390 |
391 } // namespace content | 391 } // namespace content |
OLD | NEW |