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

Side by Side Diff: include/gpu/gl/command_buffer/SkCommandBufferGLContext.h

Issue 1733323002: Clean up EGL thread state at thread exit in nanobench and DM (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix main thread usage also Created 4 years, 9 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 | « include/gpu/gl/angle/SkANGLEGLContext.h ('k') | src/core/SkTaskGroup.h » ('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 2015 Google Inc. 3 * Copyright 2015 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 SKCOMMANDBUFFERGLCONTEXT_DEFINED 8 #ifndef SKCOMMANDBUFFERGLCONTEXT_DEFINED
9 #define SKCOMMANDBUFFERGLCONTEXT_DEFINED 9 #define SKCOMMANDBUFFERGLCONTEXT_DEFINED
10 10
(...skipping 22 matching lines...) Expand all
33 return nullptr; 33 return nullptr;
34 } 34 }
35 return ctx; 35 return ctx;
36 } 36 }
37 37
38 void presentCommandBuffer(); 38 void presentCommandBuffer();
39 39
40 bool makeCurrent(); 40 bool makeCurrent();
41 int getStencilBits(); 41 int getStencilBits();
42 int getSampleCount(); 42 int getSampleCount();
43 43 static void ReleaseGpuAPIsInThread();
44 private: 44 private:
45 SkCommandBufferGLContext(); 45 SkCommandBufferGLContext();
46 SkCommandBufferGLContext(void* nativeWindow, int msaaSampleCount); 46 SkCommandBufferGLContext(void* nativeWindow, int msaaSampleCount);
47 void initializeGLContext(void* nativeWindow, const int* configAttribs, 47 void initializeGLContext(void* nativeWindow, const int* configAttribs,
48 const int* surfaceAttribs); 48 const int* surfaceAttribs);
49 void destroyGLContext(); 49 void destroyGLContext();
50 50
51 void onPlatformMakeCurrent() const override; 51 void onPlatformMakeCurrent() const override;
52 void onPlatformSwapBuffers() const override; 52 void onPlatformSwapBuffers() const override;
53 GrGLFuncPtr onPlatformGetProcAddress(const char* name) const override; 53 GrGLFuncPtr onPlatformGetProcAddress(const char* name) const override;
54 54
55 void* fContext; 55 void* fContext;
56 void* fDisplay; 56 void* fDisplay;
57 void* fSurface; 57 void* fSurface;
58 void* fConfig; 58 void* fConfig;
59 }; 59 };
60 60
61 #endif // SK_COMMAND_BUFFER 61 #endif // SK_COMMAND_BUFFER
62 62
63 #endif 63 #endif
OLDNEW
« no previous file with comments | « include/gpu/gl/angle/SkANGLEGLContext.h ('k') | src/core/SkTaskGroup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698