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

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

Issue 2869513002: cc: Clear checker-image tracking on navigation and visibility changes. (Closed)
Patch Set: comment 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
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 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 } 1388 }
1389 1389
1390 const ImageIdFlatSet& TileManager::TakeImagesToInvalidateOnSyncTree() { 1390 const ImageIdFlatSet& TileManager::TakeImagesToInvalidateOnSyncTree() {
1391 return checker_image_tracker_.TakeImagesToInvalidateOnSyncTree(); 1391 return checker_image_tracker_.TakeImagesToInvalidateOnSyncTree();
1392 } 1392 }
1393 1393
1394 void TileManager::DidActivateSyncTree() { 1394 void TileManager::DidActivateSyncTree() {
1395 checker_image_tracker_.DidActivateSyncTree(); 1395 checker_image_tracker_.DidActivateSyncTree();
1396 } 1396 }
1397 1397
1398 void TileManager::ClearCheckerImageTracking() {
1399 checker_image_tracker_.ClearTracker();
1400 }
1401
1398 void TileManager::NeedsInvalidationForCheckerImagedTiles() { 1402 void TileManager::NeedsInvalidationForCheckerImagedTiles() {
1399 client_->RequestImplSideInvalidation(); 1403 client_->RequestImplSideInvalidation();
1400 } 1404 }
1401 1405
1402 ResourceFormat TileManager::DetermineResourceFormat(const Tile* tile) const { 1406 ResourceFormat TileManager::DetermineResourceFormat(const Tile* tile) const {
1403 return raster_buffer_provider_->GetResourceFormat(!tile->is_opaque()); 1407 return raster_buffer_provider_->GetResourceFormat(!tile->is_opaque());
1404 } 1408 }
1405 1409
1406 bool TileManager::DetermineResourceRequiresSwizzle(const Tile* tile) const { 1410 bool TileManager::DetermineResourceRequiresSwizzle(const Tile* tile) const {
1407 return raster_buffer_provider_->IsResourceSwizzleRequired(!tile->is_opaque()); 1411 return raster_buffer_provider_->IsResourceSwizzleRequired(!tile->is_opaque());
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
1641 all_tile_tasks_completed = false; 1645 all_tile_tasks_completed = false;
1642 did_notify_all_tile_tasks_completed = false; 1646 did_notify_all_tile_tasks_completed = false;
1643 } 1647 }
1644 1648
1645 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule() = default; 1649 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule() = default;
1646 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule( 1650 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule(
1647 PrioritizedWorkToSchedule&& other) = default; 1651 PrioritizedWorkToSchedule&& other) = default;
1648 TileManager::PrioritizedWorkToSchedule::~PrioritizedWorkToSchedule() = default; 1652 TileManager::PrioritizedWorkToSchedule::~PrioritizedWorkToSchedule() = default;
1649 1653
1650 } // namespace cc 1654 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698