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

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

Issue 813563004: Add vendorid and deviceid to webglinfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 * 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 typedef unsigned WGC3Duint; 54 typedef unsigned WGC3Duint;
55 typedef float WGC3Dfloat; 55 typedef float WGC3Dfloat;
56 typedef float WGC3Dclampf; 56 typedef float WGC3Dclampf;
57 typedef signed long int WGC3Dintptr; 57 typedef signed long int WGC3Dintptr;
58 typedef signed long int WGC3Dsizeiptr; 58 typedef signed long int WGC3Dsizeiptr;
59 59
60 // Typedef for server-side objects like OpenGL textures and program objects. 60 // Typedef for server-side objects like OpenGL textures and program objects.
61 typedef WGC3Duint WebGLId; 61 typedef WGC3Duint WebGLId;
62 62
63 struct WebGLInfo { 63 struct WebGLInfo {
64 WGC3Duint vendorId;
65 WGC3Duint deviceId;
64 WebString vendorInfo; 66 WebString vendorInfo;
65 WebString rendererInfo; 67 WebString rendererInfo;
66 WebString driverVersion; 68 WebString driverVersion;
67 WebString contextInfoCollectionFailure; 69 WebString contextInfoCollectionFailure;
68 }; 70 };
69 71
70 // This interface abstracts the operations performed by the 72 // This interface abstracts the operations performed by the
71 // GraphicsContext3D in order to implement WebGL. Nearly all of the 73 // GraphicsContext3D in order to implement WebGL. Nearly all of the
72 // methods exposed on this interface map directly to entry points in 74 // methods exposed on this interface map directly to entry points in
73 // the OpenGL ES 2.0 API. 75 // the OpenGL ES 2.0 API.
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 virtual void vertexAttribDivisorANGLE(WGC3Duint index, WGC3Duint divisor) { } 475 virtual void vertexAttribDivisorANGLE(WGC3Duint index, WGC3Duint divisor) { }
474 476
475 // GL_EXT_multisampled_render_to_texture 477 // GL_EXT_multisampled_render_to_texture
476 virtual void framebufferTexture2DMultisampleEXT(WGC3Denum target, WGC3Denum attachment, WGC3Denum textarget, WebGLId texture, WGC3Dint level, WGC3Dsizei sam ples) { } 478 virtual void framebufferTexture2DMultisampleEXT(WGC3Denum target, WGC3Denum attachment, WGC3Denum textarget, WebGLId texture, WGC3Dint level, WGC3Dsizei sam ples) { }
477 virtual void renderbufferStorageMultisampleEXT(WGC3Denum target, WGC3Dsizei samples, WGC3Denum internalformat, WGC3Dsizei width, WGC3Dsizei height) { }; 479 virtual void renderbufferStorageMultisampleEXT(WGC3Denum target, WGC3Dsizei samples, WGC3Denum internalformat, WGC3Dsizei width, WGC3Dsizei height) { };
478 }; 480 };
479 481
480 } // namespace blink 482 } // namespace blink
481 483
482 #endif 484 #endif
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