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

Unified Diff: examples/surfaces_app/child_gl_impl.cc

Issue 940293003: Add a Display and ContextProvider concept to mojom, use to recreate (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « examples/surfaces_app/child_gl_impl.h ('k') | examples/surfaces_app/embedder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/surfaces_app/child_gl_impl.cc
diff --git a/examples/surfaces_app/child_gl_impl.cc b/examples/surfaces_app/child_gl_impl.cc
index 4e22df3eeb4fe3f38635d81f8f480f9dac7b6150..97cd9a13d2f02db62d4105aa908354dd0a7939bd 100644
--- a/examples/surfaces_app/child_gl_impl.cc
+++ b/examples/surfaces_app/child_gl_impl.cc
@@ -78,7 +78,8 @@ void ChildGLImpl::ProduceFrame(ColorPtr color,
const ProduceCallback& callback) {
color_ = color.To<SkColor>();
size_ = size.To<gfx::Size>();
- cube_.Init(size_.width(), size_.height());
+ cube_.Init();
+ cube_.set_size(size_.width(), size_.height());
cube_.set_color(
SkColorGetR(color_), SkColorGetG(color_), SkColorGetB(color_));
surface_->CreateSurface(local_id_);
« no previous file with comments | « examples/surfaces_app/child_gl_impl.h ('k') | examples/surfaces_app/embedder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698