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

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

Issue 1584993002: Delete code involving overdraw bottom height. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete more mCachedVisibleViewport lines Created 4 years, 11 months 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: 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 2f94e8386e755c4d17e5ed4d40193bae5053c27d..69580802f389cc954c9c8ee991c79ef5aca21126 100644
--- a/chrome/browser/android/compositor/compositor_view.cc
+++ b/chrome/browser/android/compositor/compositor_view.cc
@@ -88,7 +88,6 @@ CompositorView::CompositorView(JNIEnv* env,
current_surface_format_(0),
content_width_(0),
content_height_(0),
- overdraw_bottom_height_(0),
overlay_video_mode_(false),
empty_background_color_(empty_background_color),
weak_factory_(this) {
@@ -187,9 +186,7 @@ void CompositorView::SetLayoutViewport(JNIEnv* env,
jfloat height,
jfloat visible_x_offset,
jfloat visible_y_offset,
- jfloat overdraw_bottom_height,
jfloat dp_to_pixel) {
- overdraw_bottom_height_ = overdraw_bottom_height;
compositor_->setDeviceScaleFactor(dp_to_pixel);
root_layer_->SetBounds(gfx::Size(content_width_, content_height_));
}
@@ -245,10 +242,6 @@ void CompositorView::SetSceneLayer(JNIEnv* env,
}
}
-int CompositorView::GetUsableContentHeight() {
- return std::max(content_height_ - overdraw_bottom_height_, 0);
-}
-
void CompositorView::UpdateToolbarLayer(JNIEnv* env,
const JavaParamRef<jobject>& object,
jint toolbar_resource_id,

Powered by Google App Engine
This is Rietveld 408576698