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

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

Issue 1186393004: gpu: Remove async texture uploads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 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/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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 void CompositorImpl::CreateLayerTreeHost() { 440 void CompositorImpl::CreateLayerTreeHost() {
441 DCHECK(!host_); 441 DCHECK(!host_);
442 DCHECK(!WillCompositeThisFrame()); 442 DCHECK(!WillCompositeThisFrame());
443 needs_composite_ = false; 443 needs_composite_ = false;
444 pending_swapbuffers_ = 0; 444 pending_swapbuffers_ = 0;
445 cc::LayerTreeSettings settings; 445 cc::LayerTreeSettings settings;
446 settings.renderer_settings.refresh_rate = 60.0; 446 settings.renderer_settings.refresh_rate = 60.0;
447 settings.renderer_settings.allow_antialiasing = false; 447 settings.renderer_settings.allow_antialiasing = false;
448 settings.renderer_settings.highp_threshold_min = 2048; 448 settings.renderer_settings.highp_threshold_min = 2048;
449 settings.use_zero_copy = true; 449 settings.use_zero_copy = true;
450 settings.use_one_copy = false;
451 450
452 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 451 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
453 settings.initial_debug_state.SetRecordRenderingStats( 452 settings.initial_debug_state.SetRecordRenderingStats(
454 command_line->HasSwitch(cc::switches::kEnableGpuBenchmarking)); 453 command_line->HasSwitch(cc::switches::kEnableGpuBenchmarking));
455 settings.initial_debug_state.show_fps_counter = 454 settings.initial_debug_state.show_fps_counter =
456 command_line->HasSwitch(cc::switches::kUIShowFPSCounter); 455 command_line->HasSwitch(cc::switches::kUIShowFPSCounter);
457 // TODO(enne): Update this this compositor to use the scheduler. 456 // TODO(enne): Update this this compositor to use the scheduler.
458 settings.single_thread_proxy_scheduler = false; 457 settings.single_thread_proxy_scheduler = false;
459 458
460 if (command_line->HasSwitch( 459 if (command_line->HasSwitch(
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 784
786 void CompositorImpl::SetNeedsAnimate() { 785 void CompositorImpl::SetNeedsAnimate() {
787 needs_animate_ = true; 786 needs_animate_ = true;
788 if (!host_) 787 if (!host_)
789 return; 788 return;
790 789
791 host_->SetNeedsAnimate(); 790 host_->SetNeedsAnimate();
792 } 791 }
793 792
794 } // namespace content 793 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/compositor_util.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