Index: remoting/client/plugin/pepper_view.cc |
diff --git a/remoting/client/plugin/pepper_view.cc b/remoting/client/plugin/pepper_view.cc |
index 04f8f98e607cd6097adbd36f75268704d0c973e9..bec948db5fa98da4089104a0eef851d1187d13e2 100644 |
--- a/remoting/client/plugin/pepper_view.cc |
+++ b/remoting/client/plugin/pepper_view.cc |
@@ -290,20 +290,12 @@ bool PepperView::SetPluginSize(const SkISize& plugin_size) { |
return true; |
} |
-double PepperView::GetHorizontalScaleRatio() const { |
- if (instance_->DoScaling()) { |
- DCHECK(!host_size_.isEmpty()); |
- return 1.0 * plugin_size_.width() / host_size_.width(); |
- } |
- return 1.0; |
+SkISize PepperView::GetViewDimensions() const { |
+ return plugin_size_; |
} |
-double PepperView::GetVerticalScaleRatio() const { |
- if (instance_->DoScaling()) { |
- DCHECK(!host_size_.isEmpty()); |
- return 1.0 * plugin_size_.height() / host_size_.height(); |
- } |
- return 1.0; |
+SkISize PepperView::GetHostDimensions() const { |
+ return host_size_; |
} |
void PepperView::AllocateFrame(media::VideoFrame::Format format, |