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

Side by Side Diff: tools/gpu/gl/angle/GLTestContext_angle.h

Issue 2381033002: Explicit control in tools of ANGLE frontend and backend (Closed)
Patch Set: rebase infra training Created 4 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 unified diff | Download patch
« no previous file with comments | « tools/gpu/GrContextFactory.cpp ('k') | tools/gpu/gl/angle/GLTestContext_angle.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef GLTestContext_angle_DEFINED 8 #ifndef GLTestContext_angle_DEFINED
9 #define GLTestContext_angle_DEFINED 9 #define GLTestContext_angle_DEFINED
10 10
11 #include "gl/GLTestContext.h" 11 #include "gl/GLTestContext.h"
12 12
13 namespace sk_gpu_test { 13 namespace sk_gpu_test {
14 14
15 /** 15 /**
16 * Creates a GrGLInterface for the currently ANGLE GL context currently bound in ANGLE's EGL 16 * Creates a GrGLInterface for the current ANGLE GLES Context. Here current mean s bound in ANGLE's
17 * implementation. 17 * implementation of EGL.
18 */ 18 */
19 const GrGLInterface* CreateANGLEGLInterface(); 19 const GrGLInterface* CreateANGLEGLInterface();
20 20
21 #ifdef SK_BUILD_FOR_WIN 21 enum class ANGLEBackend {
22 /** Creates a GLTestContext backed by ANGLE's Direct3D backend. */ 22 kD3D9,
23 GLTestContext* CreateANGLEDirect3DGLTestContext(); 23 kD3D11,
24 #endif 24 kOpenGL
25 };
25 26
26 /** Creates a GLTestContext backed by ANGLE's OpenGL backend. */ 27 enum class ANGLEContextVersion {
27 GLTestContext* CreateANGLEOpenGLGLTestContext(); 28 kES2,
29 kES3
30 };
31
32 /** Creates a GLTestContext backed by ANGLE. */
33 GLTestContext* CreateANGLETestContext(ANGLEBackend, ANGLEContextVersion);
28 34
29 } // namespace sk_gpu_test 35 } // namespace sk_gpu_test
30 #endif 36 #endif
OLDNEW
« no previous file with comments | « tools/gpu/GrContextFactory.cpp ('k') | tools/gpu/gl/angle/GLTestContext_angle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698