OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/renderer/render_widget_fullscreen_pepper.h" | 5 #include "chrome/renderer/render_widget_fullscreen_pepper.h" |
6 | 6 |
7 #include "chrome/common/render_messages.h" | 7 #include "chrome/common/render_messages.h" |
8 #include "chrome/renderer/ggl/ggl.h" | 8 #include "chrome/renderer/ggl/ggl.h" |
9 #include "chrome/renderer/gpu_channel_host.h" | 9 #include "chrome/renderer/gpu_channel_host.h" |
10 #include "chrome/renderer/pepper_platform_context_3d_impl.h" | 10 #include "chrome/renderer/pepper_platform_context_3d_impl.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 return size_; | 49 return size_; |
50 } | 50 } |
51 | 51 |
52 virtual void resize(const WebSize& size) { | 52 virtual void resize(const WebSize& size) { |
53 size_ = size; | 53 size_ = size; |
54 WebRect plugin_rect(0, 0, size_.width, size_.height); | 54 WebRect plugin_rect(0, 0, size_.width, size_.height); |
55 plugin_->ViewChanged(plugin_rect, plugin_rect); | 55 plugin_->ViewChanged(plugin_rect, plugin_rect); |
56 widget_->Invalidate(); | 56 widget_->Invalidate(); |
57 } | 57 } |
58 | 58 |
| 59 virtual void animate() { |
| 60 } |
| 61 |
59 virtual void layout() { | 62 virtual void layout() { |
60 } | 63 } |
61 | 64 |
62 virtual void paint(WebCanvas* canvas, const WebRect& rect) { | 65 virtual void paint(WebCanvas* canvas, const WebRect& rect) { |
63 if (!plugin_) | 66 if (!plugin_) |
64 return; | 67 return; |
65 WebRect plugin_rect(0, 0, size_.width, size_.height); | 68 WebRect plugin_rect(0, 0, size_.width, size_.height); |
66 plugin_->Paint(canvas, plugin_rect, rect); | 69 plugin_->Paint(canvas, plugin_rect, rect); |
67 } | 70 } |
68 | 71 |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 return true; | 417 return true; |
415 } | 418 } |
416 | 419 |
417 bool RenderWidgetFullscreenPepper::CheckCompositing() { | 420 bool RenderWidgetFullscreenPepper::CheckCompositing() { |
418 bool compositing = webwidget_->isAcceleratedCompositingActive(); | 421 bool compositing = webwidget_->isAcceleratedCompositingActive(); |
419 if (compositing != is_accelerated_compositing_active_) { | 422 if (compositing != is_accelerated_compositing_active_) { |
420 didActivateAcceleratedCompositing(compositing); | 423 didActivateAcceleratedCompositing(compositing); |
421 } | 424 } |
422 return compositing; | 425 return compositing; |
423 } | 426 } |
OLD | NEW |