Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: content/renderer/render_widget_fullscreen_pepper.cc

Issue 9370051: Fix pepper flash fullscreen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_widget_fullscreen_pepper.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « content/renderer/render_widget_fullscreen_pepper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698