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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
| 292 void RenderWidgetFullscreenPepper::DidInitiatePaint() { |
| 293 if (plugin_) |
| 294 plugin_->ViewInitiatedPaint(); |
| 295 } |
| 296 |
292 void RenderWidgetFullscreenPepper::DidFlushPaint() { | 297 void RenderWidgetFullscreenPepper::DidFlushPaint() { |
293 if (plugin_) | 298 if (plugin_) |
294 plugin_->ViewFlushedPaint(); | 299 plugin_->ViewFlushedPaint(); |
295 } | 300 } |
296 | 301 |
297 void RenderWidgetFullscreenPepper::Close() { | 302 void RenderWidgetFullscreenPepper::Close() { |
298 // If the fullscreen window is closed (e.g. user pressed escape), reset to | 303 // If the fullscreen window is closed (e.g. user pressed escape), reset to |
299 // normal mode. | 304 // normal mode. |
300 if (plugin_) | 305 if (plugin_) |
301 plugin_->FlashSetFullscreen(false, false); | 306 plugin_->FlashSetFullscreen(false, false); |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 | 523 |
519 ContentGLContext* | 524 ContentGLContext* |
520 RenderWidgetFullscreenPepper::GetParentContextForPlatformContext3D() { | 525 RenderWidgetFullscreenPepper::GetParentContextForPlatformContext3D() { |
521 if (!context_) { | 526 if (!context_) { |
522 CreateContext(); | 527 CreateContext(); |
523 } | 528 } |
524 if (!context_) | 529 if (!context_) |
525 return NULL; | 530 return NULL; |
526 return context_; | 531 return context_; |
527 } | 532 } |
OLD | NEW |