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

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

Issue 2857363004: Add buffer_to_texture_target_map to LayerTreeSettings (Closed)
Patch Set: Address comments in CompositorImpl Created 3 years, 7 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
« no previous file with comments | « cc/tiles/tile_manager_unittest.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2483 matching lines...) Expand 10 before | Expand all | Expand 10 after
2494 has_valid_compositor_frame_sink_ = true; 2494 has_valid_compositor_frame_sink_ = true;
2495 resource_provider_ = base::MakeUnique<ResourceProvider>( 2495 resource_provider_ = base::MakeUnique<ResourceProvider>(
2496 compositor_frame_sink_->context_provider(), 2496 compositor_frame_sink_->context_provider(),
2497 compositor_frame_sink_->shared_bitmap_manager(), 2497 compositor_frame_sink_->shared_bitmap_manager(),
2498 compositor_frame_sink_->gpu_memory_buffer_manager(), 2498 compositor_frame_sink_->gpu_memory_buffer_manager(),
2499 task_runner_provider_->blocking_main_thread_task_runner(), 2499 task_runner_provider_->blocking_main_thread_task_runner(),
2500 settings_.renderer_settings.texture_id_allocation_chunk_size, 2500 settings_.renderer_settings.texture_id_allocation_chunk_size,
2501 compositor_frame_sink_->capabilities().delegated_sync_points_required, 2501 compositor_frame_sink_->capabilities().delegated_sync_points_required,
2502 settings_.renderer_settings.use_gpu_memory_buffer_resources, 2502 settings_.renderer_settings.use_gpu_memory_buffer_resources,
2503 settings_.enable_color_correct_rasterization, 2503 settings_.enable_color_correct_rasterization,
2504 settings_.renderer_settings.buffer_to_texture_target_map); 2504 settings_.buffer_to_texture_target_map);
2505 2505
2506 // Since the new context may be capable of MSAA, update status here. We don't 2506 // Since the new context may be capable of MSAA, update status here. We don't
2507 // need to check the return value since we are recreating all resources 2507 // need to check the return value since we are recreating all resources
2508 // already. 2508 // already.
2509 UpdateGpuRasterizationStatus(); 2509 UpdateGpuRasterizationStatus();
2510 2510
2511 // See note in LayerTreeImpl::UpdateDrawProperties, new CompositorFrameSink 2511 // See note in LayerTreeImpl::UpdateDrawProperties, new CompositorFrameSink
2512 // means a new max texture size which affects draw properties. Also, if the 2512 // means a new max texture size which affects draw properties. Also, if the
2513 // draw properties were up to date, layers still lost resources and we need to 2513 // draw properties were up to date, layers still lost resources and we need to
2514 // UpdateDrawProperties() after calling RecreateTreeResources(). 2514 // UpdateDrawProperties() after calling RecreateTreeResources().
(...skipping 1841 matching lines...) Expand 10 before | Expand all | Expand 10 after
4356 4356
4357 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) { 4357 void LayerTreeHostImpl::ShowScrollbarsForImplScroll(ElementId element_id) {
4358 if (!element_id) 4358 if (!element_id)
4359 return; 4359 return;
4360 if (ScrollbarAnimationController* animation_controller = 4360 if (ScrollbarAnimationController* animation_controller =
4361 ScrollbarAnimationControllerForElementId(element_id)) 4361 ScrollbarAnimationControllerForElementId(element_id))
4362 animation_controller->DidScrollUpdate(); 4362 animation_controller->DidScrollUpdate();
4363 } 4363 }
4364 4364
4365 } // namespace cc 4365 } // namespace cc
OLDNEW
« no previous file with comments | « cc/tiles/tile_manager_unittest.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698