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

Side by Side Diff: src/views/win/SkOSWindow_win.cpp

Issue 133073009: Move GrGLInterface function pointers into a nested struct (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: tip of tree Created 6 years, 11 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 | Annotate | Revision Log
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 #include "SkTypes.h" 8 #include "SkTypes.h"
9 9
10 #if defined(SK_BUILD_FOR_WIN) 10 #if defined(SK_BUILD_FOR_WIN)
11 11
12 #include <GL/gl.h> 12 #include <GL/gl.h>
13 #include <WindowsX.h> 13 #include <WindowsX.h>
14 #include "SkWGL.h" 14 #include "SkWGL.h"
15 #include "SkWindow.h" 15 #include "SkWindow.h"
16 #include "SkCanvas.h" 16 #include "SkCanvas.h"
17 #include "SkOSMenu.h" 17 #include "SkOSMenu.h"
18 #include "SkTime.h" 18 #include "SkTime.h"
19 #include "SkUtils.h" 19 #include "SkUtils.h"
20 20
21 #include "SkGraphics.h" 21 #include "SkGraphics.h"
22 22
23 #if SK_ANGLE 23 #if SK_ANGLE
24 #include "gl/GrGLInterface.h" 24 #include "gl/GrGLInterface.h"
25 25
26 #include "GLES2/gl2.h" 26 #include "GLES2/gl2.h"
27 27
28 #define ANGLE_GL_CALL(IFACE, X) \ 28 #define ANGLE_GL_CALL(IFACE, X) \
29 do { \ 29 do { \
30 (IFACE)->f##X; \ 30 (IFACE)->fFunctions.f##X; \
31 } while (false) 31 } while (false)
32 32
33 #endif 33 #endif
34 34
35 #define INVALIDATE_DELAY_MS 200 35 #define INVALIDATE_DELAY_MS 200
36 36
37 static SkOSWindow* gCurrOSWin; 37 static SkOSWindow* gCurrOSWin;
38 static HWND gEventTarget; 38 static HWND gEventTarget;
39 39
40 #define WM_EVENT_CALLBACK (WM_USER+0) 40 #define WM_EVENT_CALLBACK (WM_USER+0)
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 break; 609 break;
610 #endif // SK_ANGLE 610 #endif // SK_ANGLE
611 #endif // SK_SUPPORT_GPU 611 #endif // SK_SUPPORT_GPU
612 default: 612 default:
613 SkASSERT(false); 613 SkASSERT(false);
614 break; 614 break;
615 } 615 }
616 } 616 }
617 617
618 #endif 618 #endif
OLDNEW
« include/gpu/gl/GrGLInterface.h ('K') | « src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698