| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "content/common/gpu/client/gpu_channel_host.h" | 9 #include "content/common/gpu/client/gpu_channel_host.h" |
| 10 #include "content/common/view_messages.h" | 10 #include "content/common/view_messages.h" |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 } | 298 } |
| 299 | 299 |
| 300 void RenderWidgetFullscreenPepper::DidChangeCursor( | 300 void RenderWidgetFullscreenPepper::DidChangeCursor( |
| 301 const WebKit::WebCursorInfo& cursor) { | 301 const WebKit::WebCursorInfo& cursor) { |
| 302 didChangeCursor(cursor); | 302 didChangeCursor(cursor); |
| 303 } | 303 } |
| 304 | 304 |
| 305 webkit::ppapi::PluginDelegate::PlatformContext3D* | 305 webkit::ppapi::PluginDelegate::PlatformContext3D* |
| 306 RenderWidgetFullscreenPepper::CreateContext3D() { | 306 RenderWidgetFullscreenPepper::CreateContext3D() { |
| 307 #ifdef ENABLE_GPU | 307 #ifdef ENABLE_GPU |
| 308 return new PlatformContext3DImpl(this); | 308 return new content::PlatformContext3DImpl(this); |
| 309 #else | 309 #else |
| 310 return NULL; | 310 return NULL; |
| 311 #endif | 311 #endif |
| 312 } | 312 } |
| 313 | 313 |
| 314 void RenderWidgetFullscreenPepper::WillInitiatePaint() { | 314 void RenderWidgetFullscreenPepper::WillInitiatePaint() { |
| 315 if (plugin_) | 315 if (plugin_) |
| 316 plugin_->ViewWillInitiatePaint(); | 316 plugin_->ViewWillInitiatePaint(); |
| 317 } | 317 } |
| 318 | 318 |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 | 511 |
| 512 WebGraphicsContext3DCommandBufferImpl* | 512 WebGraphicsContext3DCommandBufferImpl* |
| 513 RenderWidgetFullscreenPepper::GetParentContextForPlatformContext3D() { | 513 RenderWidgetFullscreenPepper::GetParentContextForPlatformContext3D() { |
| 514 if (!context_) { | 514 if (!context_) { |
| 515 CreateContext(); | 515 CreateContext(); |
| 516 } | 516 } |
| 517 if (!context_) | 517 if (!context_) |
| 518 return NULL; | 518 return NULL; |
| 519 return context_; | 519 return context_; |
| 520 } | 520 } |
| OLD | NEW |