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

Unified Diff: sky/compositor/layer_host.cc

Issue 797063002: Make reftests work for sky. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: address review comments Created 6 years 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 | « sky/compositor/layer_host.h ('k') | sky/services/testing/test_harness.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/compositor/layer_host.cc
diff --git a/sky/compositor/layer_host.cc b/sky/compositor/layer_host.cc
index 36b3ec26e5cc34556cfd0dc6baee6cc7b3e65137..1739c78e41baeccd1feb408bc67206320aaebc1a 100644
--- a/sky/compositor/layer_host.cc
+++ b/sky/compositor/layer_host.cc
@@ -42,6 +42,10 @@ void LayerHost::SetRootLayer(scoped_refptr<Layer> layer) {
root_layer_->set_host(this);
}
+void LayerHost::GetPixelsForTesting(std::vector<unsigned char>* pixels) {
+ return root_layer_->GetPixelsForTesting(pixels);
+}
+
void LayerHost::OnSurfaceConnectionCreated() {
DCHECK_EQ(state_, kWaitingForSurfaceService);
state_ = kReadyForFrame;
« no previous file with comments | « sky/compositor/layer_host.h ('k') | sky/services/testing/test_harness.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698