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

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

Issue 1434813002: Add support for EGLImage to GrGLInterface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: cleanup Created 5 years, 1 month 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 | « include/gpu/gl/GrGLFunctions.h ('k') | include/gpu/gl/GrGLTypes.h » ('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 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrGLInterface_DEFINED 8 #ifndef GrGLInterface_DEFINED
9 #define GrGLInterface_DEFINED 9 #define GrGLInterface_DEFINED
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 public: 121 public:
122 GLPtrAlias(GLPtr<FNPTR_TYPE>* base) : fBase(base) {} 122 GLPtrAlias(GLPtr<FNPTR_TYPE>* base) : fBase(base) {}
123 void operator=(FNPTR_TYPE ptr) { *fBase = ptr; } 123 void operator=(FNPTR_TYPE ptr) { *fBase = ptr; }
124 private: 124 private:
125 GLPtr<FNPTR_TYPE>* fBase; 125 GLPtr<FNPTR_TYPE>* fBase;
126 }; 126 };
127 127
128 typedef SkRefCnt INHERITED; 128 typedef SkRefCnt INHERITED;
129 129
130 public: 130 public:
131
132
133 GrGLInterface(); 131 GrGLInterface();
134 132
135 static GrGLInterface* NewClone(const GrGLInterface*); 133 static GrGLInterface* NewClone(const GrGLInterface*);
136 134
137 // Validates that the GrGLInterface supports its advertised standard. This m eans the necessary 135 // Validates that the GrGLInterface supports its advertised standard. This m eans the necessary
138 // function pointers have been initialized for both the GL version and any a dvertised 136 // function pointers have been initialized for both the GL version and any a dvertised
139 // extensions. 137 // extensions.
140 bool validate() const; 138 bool validate() const;
141 139
142 // Indicates the type of GL implementation 140 // Indicates the type of GL implementation
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 GLPtr<GrGLNamedFramebufferParameteriProc> fNamedFramebufferParameteri; 492 GLPtr<GrGLNamedFramebufferParameteriProc> fNamedFramebufferParameteri;
495 493
496 /* KHR_debug */ 494 /* KHR_debug */
497 GLPtr<GrGLDebugMessageControlProc> fDebugMessageControl; 495 GLPtr<GrGLDebugMessageControlProc> fDebugMessageControl;
498 GLPtr<GrGLDebugMessageInsertProc> fDebugMessageInsert; 496 GLPtr<GrGLDebugMessageInsertProc> fDebugMessageInsert;
499 GLPtr<GrGLDebugMessageCallbackProc> fDebugMessageCallback; 497 GLPtr<GrGLDebugMessageCallbackProc> fDebugMessageCallback;
500 GLPtr<GrGLGetDebugMessageLogProc> fGetDebugMessageLog; 498 GLPtr<GrGLGetDebugMessageLogProc> fGetDebugMessageLog;
501 GLPtr<GrGLPushDebugGroupProc> fPushDebugGroup; 499 GLPtr<GrGLPushDebugGroupProc> fPushDebugGroup;
502 GLPtr<GrGLPopDebugGroupProc> fPopDebugGroup; 500 GLPtr<GrGLPopDebugGroupProc> fPopDebugGroup;
503 GLPtr<GrGLObjectLabelProc> fObjectLabel; 501 GLPtr<GrGLObjectLabelProc> fObjectLabel;
502
503 /* EGL functions */
504 GLPtr<GrEGLCreateImageProc> fCreateImage;
505 GLPtr<GrEGLDestroyImageProc> fDestroyImage;
504 } fFunctions; 506 } fFunctions;
505 507
506 // Per-GL func callback 508 // Per-GL func callback
507 #if GR_GL_PER_GL_FUNC_CALLBACK 509 #if GR_GL_PER_GL_FUNC_CALLBACK
508 GrGLInterfaceCallbackProc fCallback; 510 GrGLInterfaceCallbackProc fCallback;
509 GrGLInterfaceCallbackData fCallbackData; 511 GrGLInterfaceCallbackData fCallbackData;
510 #endif 512 #endif
511 513
512 // This exists for internal testing. 514 // This exists for internal testing.
513 virtual void abandon() const {} 515 virtual void abandon() const {}
514 }; 516 };
515 517
516 #endif 518 #endif
OLDNEW
« no previous file with comments | « include/gpu/gl/GrGLFunctions.h ('k') | include/gpu/gl/GrGLTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698