Index: ui/gfx/gl/gl_context_android.cc |
diff --git a/ui/gfx/gl/gl_context_android.cc b/ui/gfx/gl/gl_context_android.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6211286a15fbd36aa11e0a3ee16d1b77ffe50e49 |
--- /dev/null |
+++ b/ui/gfx/gl/gl_context_android.cc |
@@ -0,0 +1,29 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "ui/gfx/gl/gl_context.h" |
+ |
+#include "base/logging.h" |
+#include "base/memory/ref_counted.h" |
+#include "ui/gfx/gl/gl_bindings.h" |
+#include "ui/gfx/gl/gl_context_egl.h" |
+ |
+namespace gfx { |
+ |
+// static |
+scoped_refptr<GLContext> GLContext::CreateGLContext( |
+ GLShareGroup* share_group, |
+ GLSurface* compatible_surface, |
+ GpuPreference gpu_preference) { |
+ scoped_refptr<GLContextEGL> context(new GLContextEGL(share_group)); |
jonathan.backer
2011/11/18 19:33:32
Don't you want to return a GLContextStub if GetGLI
michaelbai
2011/11/21 18:28:58
Done.
|
+ if (!context->Initialize(compatible_surface, gpu_preference)) |
+ return NULL; |
+ return context; |
+} |
+ |
+bool GLContext::SupportsDualGpus() { |
+ return false; |
+} |
+ |
+} |