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

Side by Side Diff: tools/gpu/gl/GLTestContext.h

Issue 1965273004: Nanobench running on Vulkan (Closed) Base URL: https://chromium.googlesource.com/skia.git@gltotest
Patch Set: Created 4 years, 7 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/TestContext.cpp ('k') | tools/gpu/gl/GLTestContext.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 2013 Google Inc. 3 * Copyright 2013 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_DEFINED 8 #ifndef GLTestContext_DEFINED
9 #define GLTestContext_DEFINED 9 #define GLTestContext_DEFINED
10 10
(...skipping 29 matching lines...) Expand all
40 GrGLvoid *data); 40 GrGLvoid *data);
41 41
42 /** 42 /**
43 * Used for testing EGLImage integration. Takes a EGLImage and wraps it in a 43 * Used for testing EGLImage integration. Takes a EGLImage and wraps it in a
44 * GL_TEXTURE_EXTERNAL_OES. 44 * GL_TEXTURE_EXTERNAL_OES.
45 */ 45 */
46 virtual GrGLuint eglImageToExternalTexture(GrEGLImage) const { return 0; } 46 virtual GrGLuint eglImageToExternalTexture(GrEGLImage) const { return 0; }
47 47
48 void testAbandon() override; 48 void testAbandon() override;
49 49
50 /** Ensures all work is submitted to the GPU for execution. */
51 void submit() override;
52
53 /** Wait until all GPU work is finished. */
54 void finish() override;
55
50 /** 56 /**
51 * Creates a new GL context of the same type and makes the returned context current 57 * Creates a new GL context of the same type and makes the returned context current
52 * (if not null). 58 * (if not null).
53 */ 59 */
54 virtual GLTestContext *createNew() const { return nullptr; } 60 virtual GLTestContext *createNew() const { return nullptr; }
55 61
56 protected: 62 protected:
57 GLTestContext(); 63 GLTestContext();
58 64
59 /* 65 /*
(...skipping 21 matching lines...) Expand all
81 * Creates platform-dependent GL context object. The shareContext parameter is in an optional 87 * Creates platform-dependent GL context object. The shareContext parameter is in an optional
82 * context with which to share display lists. This should be a pointer to an GLT estContext created 88 * context with which to share display lists. This should be a pointer to an GLT estContext created
83 * with SkCreatePlatformGLTestContext. NULL indicates that no sharing is to tak e place. Returns a 89 * with SkCreatePlatformGLTestContext. NULL indicates that no sharing is to tak e place. Returns a
84 * valid gl context object or NULL if such can not be created. 90 * valid gl context object or NULL if such can not be created.
85 */ 91 */
86 GLTestContext* CreatePlatformGLTestContext(GrGLStandard forcedGpuAPI, 92 GLTestContext* CreatePlatformGLTestContext(GrGLStandard forcedGpuAPI,
87 GLTestContext *shareContext = nullptr ); 93 GLTestContext *shareContext = nullptr );
88 94
89 } // namespace sk_gpu_test 95 } // namespace sk_gpu_test
90 #endif 96 #endif
OLDNEW
« no previous file with comments | « tools/gpu/TestContext.cpp ('k') | tools/gpu/gl/GLTestContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698