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

Unified Diff: gpu/command_buffer/client/gles2_demo.cc

Issue 2888016: Fix the gles2_demo to work with latest gpu process... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_demo_cc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gles2_demo.cc
===================================================================
--- gpu/command_buffer/client/gles2_demo.cc (revision 52727)
+++ gpu/command_buffer/client/gles2_demo.cc (working copy)
@@ -12,7 +12,9 @@
#include <shellapi.h>
#include <stdlib.h>
#include <stdio.h>
+#include "app/gfx/gl/gl_context.h"
#include "base/at_exit.h"
+#include "base/command_line.h"
#include "base/callback.h"
#include "base/message_loop.h"
#include "base/ref_counted.h"
@@ -192,15 +194,23 @@
LPSTR command_line,
int command_show) {
g_instance = instance;
+ int argc = 1;
+ const char* const argv[] = {
+ "gles2_demo.exe"
+ };
+
#else
int main(int argc, char** argv) {
#endif
+ CommandLine::Init(argc, argv);
const int32 kCommandBufferSize = 1024 * 1024;
base::AtExitManager at_exit_manager;
MessageLoopForUI message_loop;
+ gfx::GLContext::InitializeOneOff();
+
GLES2Demo* demo = new GLES2Demo();
void* hwnd = SetupWindow();
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_demo_cc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698