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

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

Issue 1449143004: Enable compositor-thread property trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 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/compositor_impl_android.h" 5 #include "content/browser/renderer_host/compositor_impl_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 #include <android/native_window_jni.h> 8 #include <android/native_window_jni.h>
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 settings.renderer_settings.refresh_rate = 60.0; 438 settings.renderer_settings.refresh_rate = 60.0;
439 settings.renderer_settings.allow_antialiasing = false; 439 settings.renderer_settings.allow_antialiasing = false;
440 settings.renderer_settings.highp_threshold_min = 2048; 440 settings.renderer_settings.highp_threshold_min = 2048;
441 settings.use_zero_copy = true; 441 settings.use_zero_copy = true;
442 442
443 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 443 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
444 settings.initial_debug_state.SetRecordRenderingStats( 444 settings.initial_debug_state.SetRecordRenderingStats(
445 command_line->HasSwitch(cc::switches::kEnableGpuBenchmarking)); 445 command_line->HasSwitch(cc::switches::kEnableGpuBenchmarking));
446 settings.initial_debug_state.show_fps_counter = 446 settings.initial_debug_state.show_fps_counter =
447 command_line->HasSwitch(cc::switches::kUIShowFPSCounter); 447 command_line->HasSwitch(cc::switches::kUIShowFPSCounter);
448 settings.use_property_trees = 448 if (command_line->HasSwitch(cc::switches::kDisableCompositorPropertyTrees))
449 command_line->HasSwitch(cc::switches::kEnableCompositorPropertyTrees); 449 settings.use_property_trees = false;
450 // TODO(enne): Update this this compositor to use the scheduler. 450 // TODO(enne): Update this this compositor to use the scheduler.
451 settings.single_thread_proxy_scheduler = false; 451 settings.single_thread_proxy_scheduler = false;
452 452
453 if (command_line->HasSwitch( 453 if (command_line->HasSwitch(
454 switches::kEnableAndroidCompositorAnimationTimelines)) 454 switches::kEnableAndroidCompositorAnimationTimelines))
455 settings.use_compositor_animation_timelines = true; 455 settings.use_compositor_animation_timelines = true;
456 456
457 cc::LayerTreeHost::InitParams params; 457 cc::LayerTreeHost::InitParams params;
458 params.client = this; 458 params.client = this;
459 params.shared_bitmap_manager = HostSharedBitmapManager::current(); 459 params.shared_bitmap_manager = HostSharedBitmapManager::current();
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 799
800 void CompositorImpl::SetNeedsAnimate() { 800 void CompositorImpl::SetNeedsAnimate() {
801 needs_animate_ = true; 801 needs_animate_ = true;
802 if (!host_->visible()) 802 if (!host_->visible())
803 return; 803 return;
804 804
805 host_->SetNeedsAnimate(); 805 host_->SetNeedsAnimate();
806 } 806 }
807 807
808 } // namespace content 808 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698