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

Unified Diff: remoting/client/plugin/pepper_view.cc

Issue 8985007: Refactoring of the client-side input pipeline and scaling dimension management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698