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