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

Unified Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 1747783002: CC Animation: Erase old animation system in Android Compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 9 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: content/browser/renderer_host/compositor_impl_android.cc
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index 38a69836fdfb6e8e8357f915bf91ab0e9eede05f..840afacd02eb3716481f6976a244d871e1d546d5 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -29,6 +29,7 @@
#include "cc/base/switches.h"
#include "cc/input/input_handler.h"
#include "cc/layers/layer.h"
+#include "cc/layers/layer_settings.h"
#include "cc/output/compositor_frame.h"
#include "cc/output/context_provider.h"
#include "cc/output/output_surface.h"
@@ -221,16 +222,6 @@ void Compositor::Initialize() {
}
// static
-const cc::LayerSettings& Compositor::LayerSettings() {
- return ui::WindowAndroidCompositor::LayerSettings();
-}
-
-// static
-void Compositor::SetLayerSettings(const cc::LayerSettings& settings) {
- ui::WindowAndroidCompositor::SetLayerSettings(settings);
-}
-
-// static
bool CompositorImpl::IsInitialized() {
return g_initialized;
}
@@ -252,7 +243,7 @@ scoped_ptr<cc::SurfaceIdAllocator> CompositorImpl::CreateSurfaceIdAllocator() {
CompositorImpl::CompositorImpl(CompositorClient* client,
gfx::NativeWindow root_window)
- : root_layer_(cc::Layer::Create(Compositor::LayerSettings())),
+ : root_layer_(cc::Layer::Create(cc::LayerSettings())),
resource_manager_(root_window),
surface_id_allocator_(CreateSurfaceIdAllocator()),
has_transparent_background_(false),
@@ -355,9 +346,6 @@ void CompositorImpl::CreateLayerTreeHost() {
command_line->HasSwitch(cc::switches::kUIShowFPSCounter);
settings.single_thread_proxy_scheduler = true;
- settings.use_compositor_animation_timelines = !command_line->HasSwitch(
- switches::kDisableAndroidCompositorAnimationTimelines);
-
cc::LayerTreeHost::InitParams params;
params.client = this;
params.shared_bitmap_manager = HostSharedBitmapManager::current();
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698