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

Unified Diff: apps/moterm/gl_helper_test_app.cc

Issue 1375313006: For c++, Generate enum classes instead of enum from mojom. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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 | « apps/moterm/gl_helper.cc ('k') | apps/moterm/key_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/moterm/gl_helper_test_app.cc
diff --git a/apps/moterm/gl_helper_test_app.cc b/apps/moterm/gl_helper_test_app.cc
index daeed802ea399490b7fa88a795ed7ba3990ce991..e47959f0c0fdb238b9f4581021d1aa88220d3a9a 100644
--- a/apps/moterm/gl_helper_test_app.cc
+++ b/apps/moterm/gl_helper_test_app.cc
@@ -179,7 +179,7 @@ class GlHelperExampleApp : public mojo::ApplicationDelegate,
pass->has_transparent_background = false;
pass->quads = mojo::Array<mojo::QuadPtr>::New(1);
mojo::QuadPtr quad = mojo::Quad::New();
- quad->material = mojo::MATERIAL_SURFACE_CONTENT;
+ quad->material = mojo::Material::SURFACE_CONTENT;
quad->rect = viewport_rect.Clone();
quad->opaque_rect = viewport_rect.Clone();
quad->visible_rect = viewport_rect.Clone();
@@ -199,7 +199,7 @@ class GlHelperExampleApp : public mojo::ApplicationDelegate,
shared_quad_state->clip_rect = viewport_rect.Clone();
shared_quad_state->is_clipped = false;
shared_quad_state->opacity = 1;
- shared_quad_state->blend_mode = mojo::SK_XFERMODE_kSrc_Mode;
+ shared_quad_state->blend_mode = mojo::SkXfermode::kSrc_Mode;
shared_quad_state->sorting_context_id = 0;
pass->shared_quad_states[0] = shared_quad_state.Pass();
frame->passes[0] = pass.Pass();
« no previous file with comments | « apps/moterm/gl_helper.cc ('k') | apps/moterm/key_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698