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

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

Issue 2640153006: Fix Win/Clang components build of cc_unittests (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 | « cc/tiles/tile_manager.h ('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 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 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 std::unique_ptr<RasterBuffer> raster_buffer = 1017 std::unique_ptr<RasterBuffer> raster_buffer =
1018 raster_buffer_provider_->AcquireBufferForRaster( 1018 raster_buffer_provider_->AcquireBufferForRaster(
1019 resource, resource_content_id, tile->invalidated_id()); 1019 resource, resource_content_id, tile->invalidated_id());
1020 return make_scoped_refptr(new RasterTaskImpl( 1020 return make_scoped_refptr(new RasterTaskImpl(
1021 this, tile, resource, prioritized_tile.raster_source(), playback_settings, 1021 this, tile, resource, prioritized_tile.raster_source(), playback_settings,
1022 prioritized_tile.priority().resolution, invalidated_rect, 1022 prioritized_tile.priority().resolution, invalidated_rect,
1023 prepare_tiles_count_, std::move(raster_buffer), &decode_tasks, 1023 prepare_tiles_count_, std::move(raster_buffer), &decode_tasks,
1024 use_gpu_rasterization_)); 1024 use_gpu_rasterization_));
1025 } 1025 }
1026 1026
1027 void TileManager::ResetSignalsForTesting() {
1028 signals_.reset();
1029 }
1030
1027 void TileManager::OnRasterTaskCompleted( 1031 void TileManager::OnRasterTaskCompleted(
1028 std::unique_ptr<RasterBuffer> raster_buffer, 1032 std::unique_ptr<RasterBuffer> raster_buffer,
1029 Tile::Id tile_id, 1033 Tile::Id tile_id,
1030 Resource* resource, 1034 Resource* resource,
1031 bool was_canceled) { 1035 bool was_canceled) {
1032 raster_buffer_provider_->ReleaseBufferForRaster(std::move(raster_buffer)); 1036 raster_buffer_provider_->ReleaseBufferForRaster(std::move(raster_buffer));
1033 1037
1034 auto found = tiles_.find(tile_id); 1038 auto found = tiles_.find(tile_id);
1035 Tile* tile = nullptr; 1039 Tile* tile = nullptr;
1036 if (found != tiles_.end()) { 1040 if (found != tiles_.end()) {
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
1368 all_tile_tasks_completed = false; 1372 all_tile_tasks_completed = false;
1369 did_notify_all_tile_tasks_completed = false; 1373 did_notify_all_tile_tasks_completed = false;
1370 } 1374 }
1371 1375
1372 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule() = default; 1376 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule() = default;
1373 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule( 1377 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule(
1374 PrioritizedWorkToSchedule&& other) = default; 1378 PrioritizedWorkToSchedule&& other) = default;
1375 TileManager::PrioritizedWorkToSchedule::~PrioritizedWorkToSchedule() = default; 1379 TileManager::PrioritizedWorkToSchedule::~PrioritizedWorkToSchedule() = default;
1376 1380
1377 } // namespace cc 1381 } // namespace cc
OLDNEW
« no previous file with comments | « cc/tiles/tile_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698