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

Side by Side Diff: cc/trees/layer_tree_host_impl.cc

Issue 2120713002: Fix use_image_texture_target inconsistencies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 5 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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/trees/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 2325 matching lines...) Expand 10 before | Expand all | Expand 10 after
2336 2336
2337 output_surface_ = output_surface; 2337 output_surface_ = output_surface;
2338 resource_provider_ = base::MakeUnique<ResourceProvider>( 2338 resource_provider_ = base::MakeUnique<ResourceProvider>(
2339 output_surface_->context_provider(), shared_bitmap_manager_, 2339 output_surface_->context_provider(), shared_bitmap_manager_,
2340 gpu_memory_buffer_manager_, 2340 gpu_memory_buffer_manager_,
2341 task_runner_provider_->blocking_main_thread_task_runner(), 2341 task_runner_provider_->blocking_main_thread_task_runner(),
2342 settings_.renderer_settings.highp_threshold_min, 2342 settings_.renderer_settings.highp_threshold_min,
2343 settings_.renderer_settings.texture_id_allocation_chunk_size, 2343 settings_.renderer_settings.texture_id_allocation_chunk_size,
2344 output_surface_->capabilities().delegated_sync_points_required, 2344 output_surface_->capabilities().delegated_sync_points_required,
2345 settings_.renderer_settings.use_gpu_memory_buffer_resources, 2345 settings_.renderer_settings.use_gpu_memory_buffer_resources,
2346 settings_.use_image_texture_targets); 2346 settings_.renderer_settings.use_image_texture_targets);
2347 2347
2348 CreateAndSetRenderer(); 2348 CreateAndSetRenderer();
2349 2349
2350 // Since the new renderer may be capable of MSAA, update status here. 2350 // Since the new renderer may be capable of MSAA, update status here.
2351 UpdateGpuRasterizationStatus(); 2351 UpdateGpuRasterizationStatus();
2352 2352
2353 CreateTileManagerResources(); 2353 CreateTileManagerResources();
2354 RecreateTreeResources(); 2354 RecreateTreeResources();
2355 2355
2356 // Initialize vsync parameters to sane values. 2356 // Initialize vsync parameters to sane values.
(...skipping 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after
4039 return task_runner_provider_->HasImplThread(); 4039 return task_runner_provider_->HasImplThread();
4040 } 4040 }
4041 4041
4042 bool LayerTreeHostImpl::CommitToActiveTree() const { 4042 bool LayerTreeHostImpl::CommitToActiveTree() const {
4043 // In single threaded mode we skip the pending tree and commit directly to the 4043 // In single threaded mode we skip the pending tree and commit directly to the
4044 // active tree. 4044 // active tree.
4045 return !task_runner_provider_->HasImplThread(); 4045 return !task_runner_provider_->HasImplThread();
4046 } 4046 }
4047 4047
4048 } // namespace cc 4048 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698