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

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

Issue 2869513002: cc: Clear checker-image tracking on navigation and visibility changes. (Closed)
Patch Set: missed pending invalidations 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 bool can_clear_decode_policy_tracking) {
1400 checker_image_tracker_.ClearTracker(can_clear_decode_policy_tracking);
1401 }
1402
1398 void TileManager::NeedsInvalidationForCheckerImagedTiles() { 1403 void TileManager::NeedsInvalidationForCheckerImagedTiles() {
1399 client_->RequestImplSideInvalidation(); 1404 client_->RequestImplSideInvalidation();
1400 } 1405 }
1401 1406
1402 ResourceFormat TileManager::DetermineResourceFormat(const Tile* tile) const { 1407 ResourceFormat TileManager::DetermineResourceFormat(const Tile* tile) const {
1403 return raster_buffer_provider_->GetResourceFormat(!tile->is_opaque()); 1408 return raster_buffer_provider_->GetResourceFormat(!tile->is_opaque());
1404 } 1409 }
1405 1410
1406 bool TileManager::DetermineResourceRequiresSwizzle(const Tile* tile) const { 1411 bool TileManager::DetermineResourceRequiresSwizzle(const Tile* tile) const {
1407 return raster_buffer_provider_->IsResourceSwizzleRequired(!tile->is_opaque()); 1412 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; 1646 all_tile_tasks_completed = false;
1642 did_notify_all_tile_tasks_completed = false; 1647 did_notify_all_tile_tasks_completed = false;
1643 } 1648 }
1644 1649
1645 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule() = default; 1650 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule() = default;
1646 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule( 1651 TileManager::PrioritizedWorkToSchedule::PrioritizedWorkToSchedule(
1647 PrioritizedWorkToSchedule&& other) = default; 1652 PrioritizedWorkToSchedule&& other) = default;
1648 TileManager::PrioritizedWorkToSchedule::~PrioritizedWorkToSchedule() = default; 1653 TileManager::PrioritizedWorkToSchedule::~PrioritizedWorkToSchedule() = default;
1649 1654
1650 } // namespace cc 1655 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698