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

Side by Side Diff: tools/viewer/sk_app/unix/GLWindowContext_unix.cpp

Issue 2067023002: Enable viewer in non-Vulkan builds (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Only include XCB if using Vulkan Created 4 years, 6 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2016 Google Inc. 3 * Copyright 2016 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 8
9 #include "GLWindowContext_unix.h" 9 #include "GLWindowContext_unix.h"
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 return; 83 return;
84 } 84 }
85 glXMakeCurrent(fDisplay, None, nullptr); 85 glXMakeCurrent(fDisplay, None, nullptr);
86 glXDestroyContext(fDisplay, fGLContext); 86 glXDestroyContext(fDisplay, fGLContext);
87 fGLContext = nullptr; 87 fGLContext = nullptr;
88 } 88 }
89 89
90 90
91 void GLWindowContext_unix::onSwapBuffers() { 91 void GLWindowContext_unix::onSwapBuffers() {
92 if (fDisplay && fGLContext) { 92 if (fDisplay && fGLContext) {
93 printf("swapping\n");
94 glXSwapBuffers(fDisplay, fWindow); 93 glXSwapBuffers(fDisplay, fWindow);
95 } 94 }
96 } 95 }
97 96
98 97
99 } //namespace sk_app 98 } //namespace sk_app
OLDNEW
« no previous file with comments | « tools/viewer/sk_app/android/Window_android.cpp ('k') | tools/viewer/sk_app/unix/Window_unix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698