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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 2819493002: [Test] Move DelegatedFrameEvictor into components -public_deps (Closed)
Patch Set: use if null instead of feature Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/renderer_host/render_widget_host_view_android.h" 5 #include "content/browser/renderer_host/render_widget_host_view_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 ime_adapter_android_(nullptr), 452 ime_adapter_android_(nullptr),
453 background_color_(SK_ColorWHITE), 453 background_color_(SK_ColorWHITE),
454 cached_background_color_(SK_ColorWHITE), 454 cached_background_color_(SK_ColorWHITE),
455 view_(this), 455 view_(this),
456 gesture_provider_(ui::GetGestureProviderConfig( 456 gesture_provider_(ui::GetGestureProviderConfig(
457 ui::GestureProviderConfigType::CURRENT_PLATFORM), 457 ui::GestureProviderConfigType::CURRENT_PLATFORM),
458 this), 458 this),
459 stylus_text_selector_(this), 459 stylus_text_selector_(this),
460 using_browser_compositor_(CompositorImpl::IsInitialized()), 460 using_browser_compositor_(CompositorImpl::IsInitialized()),
461 synchronous_compositor_client_(nullptr), 461 synchronous_compositor_client_(nullptr),
462 frame_evictor_(new DelegatedFrameEvictor(this)), 462 frame_evictor_(new viz::FrameEvictor(this)),
463 observing_root_window_(false), 463 observing_root_window_(false),
464 prev_top_shown_pix_(0.f), 464 prev_top_shown_pix_(0.f),
465 prev_bottom_shown_pix_(0.f), 465 prev_bottom_shown_pix_(0.f),
466 weak_ptr_factory_(this) { 466 weak_ptr_factory_(this) {
467 // Set the layer which will hold the content layer for this view. The content 467 // Set the layer which will hold the content layer for this view. The content
468 // layer is managed by the DelegatedFrameHost. 468 // layer is managed by the DelegatedFrameHost.
469 view_.SetLayer(cc::Layer::Create()); 469 view_.SetLayer(cc::Layer::Create());
470 view_.SetLayout(ui::ViewAndroid::LayoutParams::MatchParent()); 470 view_.SetLayout(ui::ViewAndroid::LayoutParams::MatchParent());
471 471
472 if (using_browser_compositor_) { 472 if (using_browser_compositor_) {
(...skipping 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after
2175 2175
2176 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor(); 2176 ui::WindowAndroidCompositor* compositor = window_android->GetCompositor();
2177 if (!compositor) 2177 if (!compositor)
2178 return; 2178 return;
2179 2179
2180 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>( 2180 overscroll_controller_ = base::MakeUnique<OverscrollControllerAndroid>(
2181 overscroll_refresh_handler, compositor, view_.GetDipScale()); 2181 overscroll_refresh_handler, compositor, view_.GetDipScale());
2182 } 2182 }
2183 2183
2184 } // namespace content 2184 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698