| 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 } | 271 } |
| 272 | 272 |
| 273 void RenderWidgetFullscreenPepper::DidChangeCursor( | 273 void RenderWidgetFullscreenPepper::DidChangeCursor( |
| 274 const WebKit::WebCursorInfo& cursor) { | 274 const WebKit::WebCursorInfo& cursor) { |
| 275 didChangeCursor(cursor); | 275 didChangeCursor(cursor); |
| 276 } | 276 } |
| 277 | 277 |
| 278 webkit::ppapi::PluginDelegate::PlatformContext3D* | 278 webkit::ppapi::PluginDelegate::PlatformContext3D* |
| 279 RenderWidgetFullscreenPepper::CreateContext3D() { | 279 RenderWidgetFullscreenPepper::CreateContext3D() { |
| 280 #ifdef ENABLE_GPU | 280 #ifdef ENABLE_GPU |
| 281 return new PlatformContext3DImpl(this); | 281 return new content::PlatformContext3DImpl(this); |
| 282 #else | 282 #else |
| 283 return NULL; | 283 return NULL; |
| 284 #endif | 284 #endif |
| 285 } | 285 } |
| 286 | 286 |
| 287 void RenderWidgetFullscreenPepper::WillInitiatePaint() { | 287 void RenderWidgetFullscreenPepper::WillInitiatePaint() { |
| 288 if (plugin_) | 288 if (plugin_) |
| 289 plugin_->ViewWillInitiatePaint(); | 289 plugin_->ViewWillInitiatePaint(); |
| 290 } | 290 } |
| 291 | 291 |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 | 523 |
| 524 ContentGLContext* | 524 ContentGLContext* |
| 525 RenderWidgetFullscreenPepper::GetParentContextForPlatformContext3D() { | 525 RenderWidgetFullscreenPepper::GetParentContextForPlatformContext3D() { |
| 526 if (!context_) { | 526 if (!context_) { |
| 527 CreateContext(); | 527 CreateContext(); |
| 528 } | 528 } |
| 529 if (!context_) | 529 if (!context_) |
| 530 return NULL; | 530 return NULL; |
| 531 return context_; | 531 return context_; |
| 532 } | 532 } |
| OLD | NEW |