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

Unified Diff: mojo/gpu/texture_cache.cc

Issue 1411103004: mozart: Port the spinning cube example. (Closed) Base URL: git@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/ui/spinning_cube/spinning_cube_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gpu/texture_cache.cc
diff --git a/mojo/gpu/texture_cache.cc b/mojo/gpu/texture_cache.cc
index f97a2ed085051fd05106418b6e0d16f9ea41aa5d..a76fedbacf55b50503904691be5cd2d10aac9fa7 100644
--- a/mojo/gpu/texture_cache.cc
+++ b/mojo/gpu/texture_cache.cc
@@ -56,6 +56,7 @@ scoped_ptr<TextureCache::TextureInfo> TextureCache::GetTexture(
// If the texture is the right size, use it.
if (texture_size.width == requested_size.width &&
texture_size.height == requested_size.height) {
+ gl_context_->MakeCurrent();
glWaitSyncPointCHROMIUM(sync_point);
return texture_info;
}
« no previous file with comments | « examples/ui/spinning_cube/spinning_cube_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698