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

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

Issue 2332143002: cc: Populate SkColorSpace for raster from resource gfx::ColorSpace (Closed)
Patch Set: Review feedback Created 4 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
« no previous file with comments | « cc/test/pixel_test.cc ('k') | no next file » | 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 2299 matching lines...) Expand 10 before | Expand all | Expand 10 after
2310 SetMemoryPolicy(settings_.software_memory_policy); 2310 SetMemoryPolicy(settings_.software_memory_policy);
2311 2311
2312 output_surface_ = output_surface; 2312 output_surface_ = output_surface;
2313 resource_provider_ = base::MakeUnique<ResourceProvider>( 2313 resource_provider_ = base::MakeUnique<ResourceProvider>(
2314 output_surface_->context_provider(), shared_bitmap_manager_, 2314 output_surface_->context_provider(), shared_bitmap_manager_,
2315 gpu_memory_buffer_manager_, 2315 gpu_memory_buffer_manager_,
2316 task_runner_provider_->blocking_main_thread_task_runner(), 2316 task_runner_provider_->blocking_main_thread_task_runner(),
2317 settings_.renderer_settings.highp_threshold_min, 2317 settings_.renderer_settings.highp_threshold_min,
2318 settings_.renderer_settings.texture_id_allocation_chunk_size, 2318 settings_.renderer_settings.texture_id_allocation_chunk_size,
2319 output_surface_->capabilities().delegated_sync_points_required, 2319 output_surface_->capabilities().delegated_sync_points_required,
2320 settings_.renderer_settings.use_gpu_memory_buffer_resources, 2320 settings_.renderer_settings.use_gpu_memory_buffer_resources, false,
2321 settings_.renderer_settings.buffer_to_texture_target_map); 2321 settings_.renderer_settings.buffer_to_texture_target_map);
2322 2322
2323 // Make sure the main context visibility is restored. Worker context 2323 // Make sure the main context visibility is restored. Worker context
2324 // visibility will be set via the memory policy update in 2324 // visibility will be set via the memory policy update in
2325 // CreateTileManagerResources below. 2325 // CreateTileManagerResources below.
2326 if (visible_) 2326 if (visible_)
2327 SetCompositorContextVisibility(true); 2327 SetCompositorContextVisibility(true);
2328 2328
2329 // Since the new context may be capable of MSAA, update status here. We don't 2329 // Since the new context may be capable of MSAA, update status here. We don't
2330 // need to check the return value since we are recreating all resources 2330 // need to check the return value since we are recreating all resources
(...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after
4179 if (is_visible) { 4179 if (is_visible) {
4180 worker_context_visibility_ = 4180 worker_context_visibility_ =
4181 worker_context->CacheController()->ClientBecameVisible(); 4181 worker_context->CacheController()->ClientBecameVisible();
4182 } else { 4182 } else {
4183 worker_context->CacheController()->ClientBecameNotVisible( 4183 worker_context->CacheController()->ClientBecameNotVisible(
4184 std::move(worker_context_visibility_)); 4184 std::move(worker_context_visibility_));
4185 } 4185 }
4186 } 4186 }
4187 4187
4188 } // namespace cc 4188 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/pixel_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698