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

Side by Side Diff: cc/tiles/tile_manager.cc

Issue 2643163004: Use ICCProfile to construct SkColorSpace (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "cc/tiles/tile_manager.h" 5 #include "cc/tiles/tile_manager.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 843 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 for (auto& prioritized_tile : tiles_that_need_to_be_rasterized) { 854 for (auto& prioritized_tile : tiles_that_need_to_be_rasterized) {
855 Tile* tile = prioritized_tile.tile(); 855 Tile* tile = prioritized_tile.tile();
856 856
857 DCHECK(tile->draw_info().requires_resource()); 857 DCHECK(tile->draw_info().requires_resource());
858 DCHECK(!tile->draw_info().resource_); 858 DCHECK(!tile->draw_info().resource_);
859 859
860 if (!tile->raster_task_) 860 if (!tile->raster_task_)
861 tile->raster_task_ = CreateRasterTask( 861 tile->raster_task_ = CreateRasterTask(
862 prioritized_tile, 862 prioritized_tile,
863 prioritized_tile.raster_source()->HasImpliedColorSpace() 863 prioritized_tile.raster_source()->HasImpliedColorSpace()
864 ? prioritized_tile.raster_source()->GetImpliedColorSpace() 864 ? gfx::ColorSpace()
865 : target_color_space); 865 : target_color_space);
866 866
867 TileTask* task = tile->raster_task_.get(); 867 TileTask* task = tile->raster_task_.get();
868 868
869 DCHECK(!task->HasCompleted()); 869 DCHECK(!task->HasCompleted());
870 870
871 if (tile->required_for_activation()) { 871 if (tile->required_for_activation()) {
872 required_for_activate_count++; 872 required_for_activate_count++;
873 graph_.edges.push_back( 873 graph_.edges.push_back(
874 TaskGraph::Edge(task, required_for_activation_done_task.get())); 874 TaskGraph::Edge(task, required_for_activation_done_task.get()));
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 all_tile_tasks_completed = false; 1373 all_tile_tasks_completed = false;
1374 did_notify_all_tile_tasks_completed = false; 1374 did_notify_all_tile_tasks_completed = false;
1375 } 1375 }
1376 1376
1377 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule() = default; 1377 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule() = default;
1378 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule( 1378 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule(
1379 PrioritizedWorkToSchedule&& other) = default; 1379 PrioritizedWorkToSchedule&& other) = default;
1380 TileManager::PrioritizedWorkToSchedule::~PrioritizedWorkToSchedule() = default; 1380 TileManager::PrioritizedWorkToSchedule::~PrioritizedWorkToSchedule() = default;
1381 1381
1382 } // namespace cc 1382 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/ColorBehavior.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698