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

Unified Diff: sky/viewer/document_view.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/viewer/document_view.h ('k') | sky/viewer/internals.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/viewer/document_view.cc
diff --git a/sky/viewer/document_view.cc b/sky/viewer/document_view.cc
index 51eae14a4c3aa48952c152ec157ee0c27f8d7678..722a935ebe915a0fe9b56cf0a6e8cd72641ef39e 100644
--- a/sky/viewer/document_view.cc
+++ b/sky/viewer/document_view.cc
@@ -80,8 +80,8 @@ DocumentView::DocumentView(
root_(NULL),
view_manager_client_factory_(shell_, this),
inspector_service_factory_(this),
- debugger_id_(s_next_debugger_id++),
- weak_factory_(this) {
+ weak_factory_(this),
+ debugger_id_(s_next_debugger_id++) {
exported_services_.AddService(&view_manager_client_factory_);
mojo::WeakBindToPipe(&exported_services_, provider.PassMessagePipe());
}
@@ -135,6 +135,10 @@ void DocumentView::initializeLayerTreeView() {
layer_host_->SetRootLayer(root_layer_);
}
+void DocumentView::GetPixelsForTesting(std::vector<unsigned char>* pixels) {
+ return layer_host_->GetPixelsForTesting(pixels);
+}
+
mojo::Shell* DocumentView::GetShell() {
return shell_;
}
« no previous file with comments | « sky/viewer/document_view.h ('k') | sky/viewer/internals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698