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

Unified Diff: chrome/browser/android/compositor/compositor_view.cc

Issue 2482233002: Remove visible viewport dependency in CompositorView (Closed)
Patch Set: remove unneeded override Created 4 years, 1 month 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
« no previous file with comments | « chrome/browser/android/compositor/compositor_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/compositor/compositor_view.cc
diff --git a/chrome/browser/android/compositor/compositor_view.cc b/chrome/browser/android/compositor/compositor_view.cc
index a6e9ca9e3a2b2bfee7ebe768e3cd7dbea6677020..a13ec780730a4f15390e69ce5930e183f09092ed 100644
--- a/chrome/browser/android/compositor/compositor_view.cc
+++ b/chrome/browser/android/compositor/compositor_view.cc
@@ -162,16 +162,8 @@ void CompositorView::SurfaceChanged(JNIEnv* env,
root_layer_->SetBounds(gfx::Size(content_width_, content_height_));
}
-void CompositorView::SetLayoutViewport(JNIEnv* env,
- const JavaParamRef<jobject>& object,
- jfloat x,
- jfloat y,
- jfloat width,
- jfloat height,
- jfloat visible_x_offset,
- jfloat visible_y_offset,
- jfloat dp_to_pixel) {
- compositor_->setDeviceScaleFactor(dp_to_pixel);
+void CompositorView::SetLayoutBounds(JNIEnv* env,
+ const JavaParamRef<jobject>& object) {
root_layer_->SetBounds(gfx::Size(content_width_, content_height_));
}
« no previous file with comments | « chrome/browser/android/compositor/compositor_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698