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

Unified Diff: sky/compositor/layer_host.cc

Issue 752653002: Enable the Sky compositor (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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.cc ('k') | sky/viewer/document_view.h » ('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 a00dbd98c194248345da9072f89c75d0b14b3729..a1991770c3b4a827fc12f5835b09c1ecaf06d38c 100644
--- a/sky/compositor/layer_host.cc
+++ b/sky/compositor/layer_host.cc
@@ -49,7 +49,13 @@ void LayerHost::ReturnResources(
void LayerHost::BeginFrame(base::TimeTicks frame_time,
base::TimeTicks deadline) {
client_->BeginFrame(frame_time);
- root_layer_->Display();
+
+ {
+ mojo::GaneshContext::Scope scope(&ganesh_context_);
+ ganesh_context_.gr()->resetContext();
esprehn 2014/11/21 17:53:19 Why not do this inside the Display() call like bef
abarth-chromium 2014/11/21 17:56:52 It doesn't really matter today because we only hav
+ root_layer_->Display();
+ }
+
Upload(root_layer_.get());
}
« no previous file with comments | « sky/compositor/layer.cc ('k') | sky/viewer/document_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698