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

Side by Side Diff: src/gpu/gl/win/SkNativeGLContext_win.cpp

Issue 99173003: Use lowercase windows.h in includes to fix Windows cross compilation using mingw. (Closed)
Patch Set: Created 7 years 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 | « src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp ('k') | src/ports/SkDebug_win.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 2011 Google Inc. 3 * Copyright 2011 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 "gl/SkNativeGLContext.h" 9 #include "gl/SkNativeGLContext.h"
10 #include "SkWGL.h" 10 #include "SkWGL.h"
11 11
12 #define WIN32_LEAN_AND_MEAN 12 #define WIN32_LEAN_AND_MEAN
13 #include <Windows.h> 13 #include <windows.h>
14 14
15 SkNativeGLContext::AutoContextRestore::AutoContextRestore() { 15 SkNativeGLContext::AutoContextRestore::AutoContextRestore() {
16 fOldHGLRC = wglGetCurrentContext(); 16 fOldHGLRC = wglGetCurrentContext();
17 fOldHDC = wglGetCurrentDC(); 17 fOldHDC = wglGetCurrentDC();
18 } 18 }
19 19
20 SkNativeGLContext::AutoContextRestore::~AutoContextRestore() { 20 SkNativeGLContext::AutoContextRestore::~AutoContextRestore() {
21 wglMakeCurrent(fOldHDC, fOldHGLRC); 21 wglMakeCurrent(fOldHDC, fOldHGLRC);
22 } 22 }
23 23
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 if (!wglMakeCurrent(fDeviceContext, fGlRenderContext)) { 111 if (!wglMakeCurrent(fDeviceContext, fGlRenderContext)) {
112 SkDebugf("Could not create rendering context.\n"); 112 SkDebugf("Could not create rendering context.\n");
113 } 113 }
114 } 114 }
115 115
116 void SkNativeGLContext::swapBuffers() const { 116 void SkNativeGLContext::swapBuffers() const {
117 if (!SwapBuffers(fDeviceContext)) { 117 if (!SwapBuffers(fDeviceContext)) {
118 SkDebugf("Could not complete SwapBuffers.\n"); 118 SkDebugf("Could not complete SwapBuffers.\n");
119 } 119 }
120 } 120 }
OLDNEW
« no previous file with comments | « src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp ('k') | src/ports/SkDebug_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698