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

Side by Side Diff: third_party/WebKit/public/platform/WebGraphicsContext3D.h

Issue 1830033003: Make lost context callback a base::Closure thru the WGC3DProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lostcontext-webclosure: 80 Created 4 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // The entry points below map directly to the OpenGL ES 2.0 API. 139 // The entry points below map directly to the OpenGL ES 2.0 API.
140 // See: http://www.khronos.org/registry/gles/ 140 // See: http://www.khronos.org/registry/gles/
141 // and: http://www.khronos.org/opengles/sdk/docs/man/ 141 // and: http://www.khronos.org/opengles/sdk/docs/man/
142 virtual bool getActiveAttrib(WebGLId program, WGC3Duint index, ActiveInfo&) = 0; 142 virtual bool getActiveAttrib(WebGLId program, WGC3Duint index, ActiveInfo&) = 0;
143 virtual bool getActiveUniform(WebGLId program, WGC3Duint index, ActiveInfo&) = 0; 143 virtual bool getActiveUniform(WebGLId program, WGC3Duint index, ActiveInfo&) = 0;
144 virtual WebString getProgramInfoLog(WebGLId program) = 0; 144 virtual WebString getProgramInfoLog(WebGLId program) = 0;
145 virtual WebString getShaderInfoLog(WebGLId shader) = 0; 145 virtual WebString getShaderInfoLog(WebGLId shader) = 0;
146 virtual WebString getShaderSource(WebGLId shader) = 0; 146 virtual WebString getShaderSource(WebGLId shader) = 0;
147 147
148 virtual void setContextLostCallback(WebGraphicsContextLostCallback* callback ) { }
149 virtual void setErrorMessageCallback(WebGraphicsErrorMessageCallback* callba ck) { } 148 virtual void setErrorMessageCallback(WebGraphicsErrorMessageCallback* callba ck) { }
150 149
151 virtual WebString getTranslatedShaderSourceANGLE(WebGLId shader) = 0; 150 virtual WebString getTranslatedShaderSourceANGLE(WebGLId shader) = 0;
152 151
153 // Prefer getting a GLES2Interface off WebGraphicsContext3DProvider if possi ble, and avoid using WebGraphicsContext3D at all. 152 // Prefer getting a GLES2Interface off WebGraphicsContext3DProvider if possi ble, and avoid using WebGraphicsContext3D at all.
154 virtual gpu::gles2::GLES2Interface* getGLES2Interface() = 0; 153 virtual gpu::gles2::GLES2Interface* getGLES2Interface() = 0;
155 }; 154 };
156 155
157 } // namespace blink 156 } // namespace blink
158 157
159 #endif 158 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698