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 clearCurrentAnimationTime() { | 62 virtual void clearCurrentAnimationTime() { |
60 } | 63 } |
61 | 64 |
62 virtual void layout() { | 65 virtual void layout() { |
63 } | 66 } |
64 | 67 |
65 virtual void paint(WebCanvas* canvas, const WebRect& rect) { | 68 virtual void paint(WebCanvas* canvas, const WebRect& rect) { |
66 if (!plugin_) | 69 if (!plugin_) |
67 return; | 70 return; |
68 WebRect plugin_rect(0, 0, size_.width, size_.height); | 71 WebRect plugin_rect(0, 0, size_.width, size_.height); |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 return true; | 420 return true; |
418 } | 421 } |
419 | 422 |
420 bool RenderWidgetFullscreenPepper::CheckCompositing() { | 423 bool RenderWidgetFullscreenPepper::CheckCompositing() { |
421 bool compositing = webwidget_->isAcceleratedCompositingActive(); | 424 bool compositing = webwidget_->isAcceleratedCompositingActive(); |
422 if (compositing != is_accelerated_compositing_active_) { | 425 if (compositing != is_accelerated_compositing_active_) { |
423 didActivateAcceleratedCompositing(compositing); | 426 didActivateAcceleratedCompositing(compositing); |
424 } | 427 } |
425 return compositing; | 428 return compositing; |
426 } | 429 } |
OLD | NEW |