| 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/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "content/common/gpu/client/gpu_channel_host.h" | 12 #include "content/common/gpu/client/gpu_channel_host.h" |
| 13 #include "content/common/view_messages.h" | 13 #include "content/common/view_messages.h" |
| 14 #include "content/public/common/content_switches.h" | 14 #include "content/public/common/content_switches.h" |
| 15 #include "content/renderer/gpu/render_widget_compositor.h" | 15 #include "content/renderer/gpu/render_widget_compositor.h" |
| 16 #include "content/renderer/pepper/pepper_platform_context_3d_impl.h" | 16 #include "content/renderer/pepper/pepper_platform_context_3d_impl.h" |
| 17 #include "content/renderer/render_thread_impl.h" | 17 #include "content/renderer/render_thread_impl.h" |
| 18 #include "gpu/command_buffer/client/gles2_implementation.h" | 18 #include "gpu/command_buffer/client/gles2_implementation.h" |
| 19 #include "skia/ext/platform_canvas.h" | 19 #include "skia/ext/platform_canvas.h" |
| 20 #include "third_party/WebKit/Source/Platform/chromium/public/WebCanvas.h" | 20 #include "third_party/WebKit/public/platform/WebCanvas.h" |
| 21 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 21 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
| 22 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" | 22 #include "third_party/WebKit/public/platform/WebLayer.h" |
| 23 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" | 23 #include "third_party/WebKit/public/platform/WebSize.h" |
| 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" |
| 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h" |
| 26 #include "ui/gfx/size_conversions.h" | 26 #include "ui/gfx/size_conversions.h" |
| 27 #include "ui/gl/gpu_preference.h" | 27 #include "ui/gl/gpu_preference.h" |
| 28 #include "webkit/plugins/ppapi/plugin_delegate.h" | 28 #include "webkit/plugins/ppapi/plugin_delegate.h" |
| 29 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 29 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 30 | 30 |
| 31 using WebKit::WebCanvas; | 31 using WebKit::WebCanvas; |
| 32 using WebKit::WebCompositionUnderline; | 32 using WebKit::WebCompositionUnderline; |
| 33 using WebKit::WebCursorInfo; | 33 using WebKit::WebCursorInfo; |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 } | 521 } |
| 522 | 522 |
| 523 void RenderWidgetFullscreenPepper::SetDeviceScaleFactor( | 523 void RenderWidgetFullscreenPepper::SetDeviceScaleFactor( |
| 524 float device_scale_factor) { | 524 float device_scale_factor) { |
| 525 RenderWidget::SetDeviceScaleFactor(device_scale_factor); | 525 RenderWidget::SetDeviceScaleFactor(device_scale_factor); |
| 526 if (compositor_) | 526 if (compositor_) |
| 527 compositor_->setDeviceScaleFactor(device_scale_factor); | 527 compositor_->setDeviceScaleFactor(device_scale_factor); |
| 528 } | 528 } |
| 529 | 529 |
| 530 } // namespace content | 530 } // namespace content |
| OLD | NEW |