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

Side by Side Diff: src/gpu/gl/iOS/SkCreatePlatformGLContext_iOS.mm

Issue 636153002: Revert of speculative fix for ios (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | 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 2012 Google Inc. 3 * Copyright 2012 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/SkGLContext.h" 9 #include "gl/SkGLContext.h"
10 #import <OpenGLES/EAGL.h> 10 #import <OpenGLES/EAGL.h>
11 11
12 #define EAGLCTX ((EAGLContext*)(fEAGLContext)) 12 #define EAGLCTX ((EAGLContext*)(fEAGLContext))
13 13
14 namespace { 14 namespace {
15 15
16 class IOSNativeGLContext : public SkGLContext { 16 class IOSNativeGLContext : public SkNativeGLContext {
17 public: 17 public:
18 IOSNativeGLContext(); 18 IOSNativeGLContext();
19 19
20 virtual ~IOSNativeGLContext(); 20 virtual ~IOSNativeGLContext();
21 21
22 virtual void makeCurrent() const SK_OVERRIDE; 22 virtual void makeCurrent() const SK_OVERRIDE;
23 virtual void swapBuffers() const SK_OVERRIDE; 23 virtual void swapBuffers() const SK_OVERRIDE;
24 protected: 24 protected:
25 virtual const GrGLInterface* createGLContext(GrGLStandard forcedGpuAPI) SK_O VERRIDE; 25 virtual const GrGLInterface* createGLContext(GrGLStandard forcedGpuAPI) SK_O VERRIDE;
26 virtual void destroyGLContext() SK_OVERRIDE; 26 virtual void destroyGLContext() SK_OVERRIDE;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 void IOSNativeGLContext::swapBuffers() const { } 73 void IOSNativeGLContext::swapBuffers() const { }
74 74
75 } // anonymous namespace 75 } // anonymous namespace
76 76
77 77
78 SkNativeGLContext* SkCreatePlatformGLContext() { 78 SkNativeGLContext* SkCreatePlatformGLContext() {
79 return SkNEW(IOSNativeGLContext); 79 return SkNEW(IOSNativeGLContext);
80 } 80 }
81 81
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698