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

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

Issue 10828420: Prepare render_widget_fullscreen_pepper.cc's WebWidget implementation for https://bugs.webkit.org/s… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 virtual void willEndLiveResize() { 102 virtual void willEndLiveResize() {
103 } 103 }
104 104
105 virtual void animate(double frameBeginTime) { 105 virtual void animate(double frameBeginTime) {
106 } 106 }
107 107
108 virtual void layout() { 108 virtual void layout() {
109 } 109 }
110 110
111 #if WEBWIDGET_HAS_PAINT_OPTIONS
112 virtual void paint(WebCanvas* canvas, const WebRect& rect, PaintOptions) {
113 #else
111 virtual void paint(WebCanvas* canvas, const WebRect& rect) { 114 virtual void paint(WebCanvas* canvas, const WebRect& rect) {
115 #endif
112 if (!widget_->plugin()) 116 if (!widget_->plugin())
113 return; 117 return;
114 118
115 WebRect plugin_rect(0, 0, size_.width, size_.height); 119 WebRect plugin_rect(0, 0, size_.width, size_.height);
116 widget_->plugin()->Paint(canvas, plugin_rect, rect); 120 widget_->plugin()->Paint(canvas, plugin_rect, rect);
117 } 121 }
118 122
119 #if WEBWIDGET_HAS_SETCOMPOSITORSURFACEREADY 123 #if WEBWIDGET_HAS_SETCOMPOSITORSURFACEREADY
120 virtual void setCompositorSurfaceReady() { 124 virtual void setCompositorSurfaceReady() {
121 } 125 }
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 579
576 WebGraphicsContext3DCommandBufferImpl* 580 WebGraphicsContext3DCommandBufferImpl*
577 RenderWidgetFullscreenPepper::GetParentContextForPlatformContext3D() { 581 RenderWidgetFullscreenPepper::GetParentContextForPlatformContext3D() {
578 if (!context_) { 582 if (!context_) {
579 CreateContext(); 583 CreateContext();
580 } 584 }
581 if (!context_) 585 if (!context_)
582 return NULL; 586 return NULL;
583 return context_; 587 return context_;
584 } 588 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698