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

Unified Diff: examples/ganesh_app/texture_uploader.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 | « examples/embedded_app/embedded_app.cc ('k') | examples/http_handler/http_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/ganesh_app/texture_uploader.cc
diff --git a/examples/ganesh_app/texture_uploader.cc b/examples/ganesh_app/texture_uploader.cc
index eb8db39a8d740dfbcc096cbc853faacce2cfc8fc..08d27f1633a1e5c3940cb875b30fa58394ae9845 100644
--- a/examples/ganesh_app/texture_uploader.cc
+++ b/examples/ganesh_app/texture_uploader.cc
@@ -76,7 +76,7 @@ void TextureUploader::Upload(scoped_ptr<mojo::GLTexture> texture) {
mojo::TransferableResourcePtr resource = mojo::TransferableResource::New();
resource->id = next_resource_id_++;
resource_to_texture_map_[resource->id] = texture.release();
- resource->format = mojo::RESOURCE_FORMAT_RGBA_8888;
+ resource->format = mojo::ResourceFormat::RGBA_8888;
resource->filter = GL_LINEAR;
resource->size = size.Clone();
mojo::MailboxHolderPtr mailbox_holder = mojo::MailboxHolder::New();
@@ -90,7 +90,7 @@ void TextureUploader::Upload(scoped_ptr<mojo::GLTexture> texture) {
resource->is_software = false;
mojo::QuadPtr quad = mojo::Quad::New();
- quad->material = mojo::MATERIAL_TEXTURE_CONTENT;
+ quad->material = mojo::Material::TEXTURE_CONTENT;
mojo::RectPtr rect = mojo::Rect::New();
rect->width = size.width;
« no previous file with comments | « examples/embedded_app/embedded_app.cc ('k') | examples/http_handler/http_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698