summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_tile_manager.h
diff options
context:
space:
mode:
authorkangyuan.shu@intel.com <kangyuan.shu@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-24 03:33:31 +0000
committerkangyuan.shu@intel.com <kangyuan.shu@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-24 03:33:31 +0000
commitb5a16341c86c1dab0967481f2d82e378cb1fdb10 (patch)
treeabed3778841c4bb1ffce046b81f236c65a60708e /cc/test/fake_tile_manager.h
parent06670453098ab67146e05aabe372a95f51d2e5c8 (diff)
downloadchromium_src-b5a16341c86c1dab0967481f2d82e378cb1fdb10.zip
chromium_src-b5a16341c86c1dab0967481f2d82e378cb1fdb10.tar.gz
chromium_src-b5a16341c86c1dab0967481f2d82e378cb1fdb10.tar.bz2
cc: In OOM situation, active tree-only tiles not in NOW bin don't get memory
Save the memroy from active tree-only non-NOW binned tiles for those over budget tiles. BUG=187503 Review URL: https://chromiumcodereview.appspot.com/12645008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196016 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_tile_manager.h')
-rw-r--r--cc/test/fake_tile_manager.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/cc/test/fake_tile_manager.h b/cc/test/fake_tile_manager.h
new file mode 100644
index 0000000..7bd4d03
--- /dev/null
+++ b/cc/test/fake_tile_manager.h
@@ -0,0 +1,25 @@
+// Copyright 2012 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.
+
+#ifndef CC_TEST_FAKE_TILE_MANAGER_H_
+#define CC_TEST_FAKE_TILE_MANAGER_H_
+
+#include "cc/resources/tile_manager.h"
+
+namespace cc {
+
+class FakeTileManager : public TileManager {
+ public:
+ explicit FakeTileManager(TileManagerClient* client);
+
+ virtual ~FakeTileManager() { }
+
+ protected:
+ // Do nothing
+ virtual void DispatchMoreTasks() OVERRIDE { }
+};
+
+} // namespace cc
+
+#endif // CC_TEST_FAKE_TILE_MANAGER_H_