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

Side by Side Diff: ui/gfx/gl/gl_context_android.cc

Issue 8588059: Upstream: GL implementation on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/gfx/gl/gl_context.h"
6
7 #include "base/logging.h"
8 #include "base/memory/ref_counted.h"
9 #include "ui/gfx/gl/gl_bindings.h"
10 #include "ui/gfx/gl/gl_context_egl.h"
11
12 namespace gfx {
13
14 // static
15 scoped_refptr<GLContext> GLContext::CreateGLContext(
16 GLShareGroup* share_group,
17 GLSurface* compatible_surface,
18 GpuPreference gpu_preference) {
19 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.
20 if (!context->Initialize(compatible_surface, gpu_preference))
21 return NULL;
22 return context;
23 }
24
25 bool GLContext::SupportsDualGpus() {
26 return false;
27 }
28
29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698