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

Side by Side Diff: mojo/public/gles2/gles2_private.cc

Issue 399653004: Add a Mojo example apptest that runs in mojo_shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments; ShellTestHelper crashes, use a hack workaround. Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/public/gles2/gles2_private.h" 5 #include "mojo/public/gles2/gles2_private.h"
6 6
7 #include <assert.h> 7 #include <assert.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "mojo/public/c/gles2/gles2.h" 10 #include "mojo/public/c/gles2/gles2.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 #include "mojo/public/c/gles2/gles2_call_visitor_autogen.h" 78 #include "mojo/public/c/gles2/gles2_call_visitor_autogen.h"
79 #undef VISIT_GL_CALL 79 #undef VISIT_GL_CALL
80 80
81 } // extern "C" 81 } // extern "C"
82 82
83 namespace mojo { 83 namespace mojo {
84 84
85 GLES2Support::~GLES2Support() {} 85 GLES2Support::~GLES2Support() {}
86 86
87 void GLES2Support::Init(GLES2Support* gles2_support) { 87 void GLES2Support::Init(GLES2Support* gles2_support) {
88 assert(!g_gles2_support); 88 // TODO(msw): Resolve the re-initialization: assert(!g_gles2_support);
89 g_gles2_support = gles2_support; 89 if (!g_gles2_support)
90 g_gles2_support = gles2_support;
90 } 91 }
91 92
92 } // namespace mojo 93 } // namespace mojo
OLDNEW
« mojo/examples/test/example_unittest.cc ('K') | « mojo/mojo_examples.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698