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

Unified Diff: third_party/WebKit/public/platform/WebGraphicsContext3D.h

Issue 1832263002: Remove WGC3D typedefs and move WebGraphicsInfo to Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: webgraphicsinfo: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/public/platform/Platform.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebGraphicsContext3D.h
diff --git a/third_party/WebKit/public/platform/WebGraphicsContext3D.h b/third_party/WebKit/public/platform/WebGraphicsContext3D.h
index 8359b15f7b17478131360f873e27918b4c1f32a3..38eb50cb35d562e63da473b8ec5a79fdfaf8302a 100644
--- a/third_party/WebKit/public/platform/WebGraphicsContext3D.h
+++ b/third_party/WebKit/public/platform/WebGraphicsContext3D.h
@@ -45,29 +45,6 @@ struct GrGLInterface;
namespace blink {
-// WGC3D types match the corresponding GL types as defined in OpenGL ES 2.0
-// header file gl2.h from khronos.org.
-typedef char WGC3Dchar;
-typedef unsigned WGC3Denum;
-typedef unsigned char WGC3Dboolean;
-typedef unsigned WGC3Dbitfield;
-typedef signed char WGC3Dbyte;
-typedef unsigned char WGC3Dubyte;
-typedef short WGC3Dshort;
-typedef unsigned short WGC3Dushort;
-typedef int WGC3Dint;
-typedef int WGC3Dsizei;
-typedef unsigned WGC3Duint;
-typedef float WGC3Dfloat;
-typedef float WGC3Dclampf;
-typedef signed long int WGC3Dintptr;
-typedef signed long int WGC3Dsizeiptr;
-typedef int64_t WGC3Dint64;
-typedef uint64_t WGC3Duint64;
-
-// Typedef for server-side objects like OpenGL textures and program objects.
-typedef WGC3Duint WebGLId;
-
// This interface abstracts the operations performed by the
// GraphicsContext3D in order to implement WebGL. Nearly all of the
// methods exposed on this interface map directly to entry points in
@@ -95,21 +72,6 @@ public:
WebString topDocumentURL;
};
- struct WebGraphicsInfo {
- unsigned vendorId = 0;
- unsigned deviceId = 0;
- unsigned processCrashCount = 0;
- unsigned resetNotificationStrategy = 0;
- bool sandboxed = false;
- bool testFailContext = false;
- bool amdSwitchable = false;
- bool optimus = false;
- WebString vendorInfo;
- WebString rendererInfo;
- WebString driverVersion;
- WebString errorMessage;
- };
-
class WebGraphicsContextLostCallback {
public:
virtual void onContextLost() = 0;
@@ -120,7 +82,7 @@ public:
class WebGraphicsErrorMessageCallback {
public:
- virtual void onErrorMessage(const WebString&, WGC3Dint) = 0;
+ virtual void onErrorMessage(const WebString&, int) = 0;
protected:
virtual ~WebGraphicsErrorMessageCallback() { }
« no previous file with comments | « third_party/WebKit/public/platform/Platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698