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

Side by Side Diff: include/gpu/gl/SkNativeGLContext.h

Issue 26701002: Add swapBuffer call to SkGLContextHelper. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: ios Created 7 years, 2 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 #ifndef SkNativeGLContext_DEFINED 8 #ifndef SkNativeGLContext_DEFINED
9 #define SkNativeGLContext_DEFINED 9 #define SkNativeGLContext_DEFINED
10 10
(...skipping 12 matching lines...) Expand all
23 #include <GL/GL.h> 23 #include <GL/GL.h>
24 #endif 24 #endif
25 25
26 class SkNativeGLContext : public SkGLContextHelper { 26 class SkNativeGLContext : public SkGLContextHelper {
27 public: 27 public:
28 SkNativeGLContext(); 28 SkNativeGLContext();
29 29
30 virtual ~SkNativeGLContext(); 30 virtual ~SkNativeGLContext();
31 31
32 virtual void makeCurrent() const SK_OVERRIDE; 32 virtual void makeCurrent() const SK_OVERRIDE;
33 virtual void swapBuffers() const SK_OVERRIDE;
33 34
34 class AutoContextRestore { 35 class AutoContextRestore {
35 public: 36 public:
36 AutoContextRestore(); 37 AutoContextRestore();
37 ~AutoContextRestore(); 38 ~AutoContextRestore();
38 39
39 private: 40 private:
40 #if defined(SK_BUILD_FOR_MAC) 41 #if defined(SK_BUILD_FOR_MAC)
41 CGLContextObj fOldCGLContext; 42 CGLContextObj fOldCGLContext;
42 #elif defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_NACL) 43 #elif defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_NACL)
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 HWND fWindow; 77 HWND fWindow;
77 HDC fDeviceContext; 78 HDC fDeviceContext;
78 HGLRC fGlRenderContext; 79 HGLRC fGlRenderContext;
79 static ATOM gWC; 80 static ATOM gWC;
80 #elif defined(SK_BUILD_FOR_IOS) 81 #elif defined(SK_BUILD_FOR_IOS)
81 void* fEAGLContext; 82 void* fEAGLContext;
82 #endif 83 #endif
83 }; 84 };
84 85
85 #endif 86 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698