diff options
author | vmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-07 22:04:47 +0000 |
---|---|---|
committer | vmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-07 22:04:47 +0000 |
commit | eeedf44230437227a66e852f1c5e1b83f25bede9 (patch) | |
tree | c3ae47e4d4f1783b73401eff31a6672501c0cf26 /cc/test/test_tile_priorities.cc | |
parent | 9c9e0247efce1cb09489db56f6578c840b5e6e1b (diff) | |
download | chromium_src-eeedf44230437227a66e852f1c5e1b83f25bede9.zip chromium_src-eeedf44230437227a66e852f1c5e1b83f25bede9.tar.gz chromium_src-eeedf44230437227a66e852f1c5e1b83f25bede9.tar.bz2 |
cc: Added priority ref tile set instead of sorting tiles.
This patch adds a new class PriorityRefTileSet to maintain
a priority ordering to tiles within TileManager. It sorts things
that need sorting, and doesn't sort other things. For instance,
NOW and SOON bins are sorted. EVENTUALLY and NEVER bins are not.
BUG=267151
Review URL: https://chromiumcodereview.appspot.com/21945006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216284 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/test_tile_priorities.cc')
-rw-r--r-- | cc/test/test_tile_priorities.cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cc/test/test_tile_priorities.cc b/cc/test/test_tile_priorities.cc new file mode 100644 index 0000000..f83f9b9 --- /dev/null +++ b/cc/test/test_tile_priorities.cc @@ -0,0 +1,23 @@ +// Copyright 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "cc/test/test_tile_priorities.h" + +namespace cc { + +TilePriorityForSoonBin::TilePriorityForSoonBin() + : TilePriority(HIGH_RESOLUTION, 0.5, 300.0) {} + +TilePriorityForEventualBin::TilePriorityForEventualBin() + : TilePriority(NON_IDEAL_RESOLUTION, 1.0, 315.0) {} + +TilePriorityForNowBin::TilePriorityForNowBin() + : TilePriority(HIGH_RESOLUTION, 0, 0) {} + +TilePriorityRequiredForActivation::TilePriorityRequiredForActivation() + : TilePriority(HIGH_RESOLUTION, 0, 0) { + required_for_activation = true; +} + +} // namespace cc |