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

Unified Diff: cc/tiled_layer.cc

Issue 11662003: cc: Put context-loss tests in layer_tree_host_unittest_context.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 80cols Created 7 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/tiled_layer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiled_layer.cc
diff --git a/cc/tiled_layer.cc b/cc/tiled_layer.cc
index 5033a2d66bb6c781782f5b77cb89a050229e7cb0..d96ea6b972420c1b859243366071cadb48c10999 100644
--- a/cc/tiled_layer.cc
+++ b/cc/tiled_layer.cc
@@ -232,6 +232,14 @@ PrioritizedResourceManager* TiledLayer::resourceManager() const
return layerTreeHost()->contentsTextureManager();
}
+const PrioritizedResource* TiledLayer::resourceAtForTesting(int i, int j) const
+{
+ UpdatableTile* tile = tileAt(i, j);
+ if (!tile)
+ return 0;
+ return tile->managedResource();
+}
+
void TiledLayer::setLayerTreeHost(LayerTreeHost* host)
{
if (host && host != layerTreeHost()) {
« no previous file with comments | « cc/tiled_layer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698