OLD | NEW |
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/renderer/render_widget_fullscreen_pepper.h" | 5 #include "content/renderer/render_widget_fullscreen_pepper.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "content/common/view_messages.h" | 9 #include "content/common/view_messages.h" |
10 #include "content/renderer/gpu/gpu_channel_host.h" | 10 #include "content/renderer/gpu/gpu_channel_host.h" |
11 #include "content/renderer/pepper_platform_context_3d_impl.h" | 11 #include "content/renderer/pepper_platform_context_3d_impl.h" |
12 #include "content/renderer/render_thread_impl.h" | 12 #include "content/renderer/render_thread_impl.h" |
13 #include "gpu/command_buffer/client/gles2_implementation.h" | 13 #include "gpu/command_buffer/client/gles2_implementation.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h" |
17 #include "ui/gfx/gl/gpu_preference.h" | 17 #include "ui/gfx/gl/gpu_preference.h" |
18 #include "webkit/plugins/ppapi/plugin_delegate.h" | 18 #include "webkit/plugins/ppapi/plugin_delegate.h" |
19 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 19 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
20 | 20 |
21 using WebKit::WebCanvas; | 21 using WebKit::WebCanvas; |
22 using WebKit::WebCompositionUnderline; | 22 using WebKit::WebCompositionUnderline; |
23 using WebKit::WebCursorInfo; | 23 using WebKit::WebCursorInfo; |
24 using WebKit::WebInputEvent; | 24 using WebKit::WebInputEvent; |
25 using WebKit::WebMouseEvent; | 25 using WebKit::WebMouseEvent; |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 | 518 |
519 RendererGLContext* | 519 RendererGLContext* |
520 RenderWidgetFullscreenPepper::GetParentContextForPlatformContext3D() { | 520 RenderWidgetFullscreenPepper::GetParentContextForPlatformContext3D() { |
521 if (!context_) { | 521 if (!context_) { |
522 CreateContext(); | 522 CreateContext(); |
523 } | 523 } |
524 if (!context_) | 524 if (!context_) |
525 return NULL; | 525 return NULL; |
526 return context_; | 526 return context_; |
527 } | 527 } |
OLD | NEW |