| 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/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "content/common/view_messages.h" | 8 #include "content/common/view_messages.h" |
| 9 #include "content/renderer/renderer_gl_context.h" | 9 #include "content/renderer/gpu/renderer_gl_context.h" |
| 10 #include "content/renderer/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.h" | 12 #include "content/renderer/render_thread.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/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 "webkit/plugins/ppapi/plugin_delegate.h" | 17 #include "webkit/plugins/ppapi/plugin_delegate.h" |
| 18 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 18 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 19 | 19 |
| 20 using WebKit::WebCanvas; | 20 using WebKit::WebCanvas; |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 NewRunnableFunction(DestroyContext, context_, program_, buffer_)); | 464 NewRunnableFunction(DestroyContext, context_, program_, buffer_)); |
| 465 context_ = NULL; | 465 context_ = NULL; |
| 466 program_ = 0; | 466 program_ = 0; |
| 467 buffer_ = 0; | 467 buffer_ = 0; |
| 468 OnSwapBuffersAborted(); | 468 OnSwapBuffersAborted(); |
| 469 } | 469 } |
| 470 | 470 |
| 471 void RenderWidgetFullscreenPepper::OnSwapBuffersCompleteByRendererGLContext() { | 471 void RenderWidgetFullscreenPepper::OnSwapBuffersCompleteByRendererGLContext() { |
| 472 OnSwapBuffersComplete(); | 472 OnSwapBuffersComplete(); |
| 473 } | 473 } |
| OLD | NEW |