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

Unified Diff: sky/compositor/layer_host.cc

Issue 854303002: Sky should use an SkPicture when drawing (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fixes Created 5 years, 11 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
Index: sky/compositor/layer_host.cc
diff --git a/sky/compositor/layer_host.cc b/sky/compositor/layer_host.cc
index d8ca387d14221320dee141676f9ec7cfabd25951..697ed265f06754973f5545d12c0daa613f1a7314 100644
--- a/sky/compositor/layer_host.cc
+++ b/sky/compositor/layer_host.cc
@@ -39,11 +39,6 @@ void LayerHost::SetNeedsAnimate() {
void LayerHost::SetRootLayer(scoped_refptr<Layer> layer) {
DCHECK(!root_layer_.get());
root_layer_ = layer;
- root_layer_->set_host(this);
-}
-
-void LayerHost::GetPixelsForTesting(std::vector<unsigned char>* pixels) {
- return root_layer_->GetPixelsForTesting(pixels);
}
void LayerHost::OnSurfaceIdAvailable(mojo::SurfaceIdPtr surface_id) {

Powered by Google App Engine
This is Rietveld 408576698