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

Side by Side Diff: ppapi/shared_impl/ppb_opengles2_shared.cc

Issue 1188013004: Added support for Time Elapsed queries through the command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
(...skipping 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 void GetQueryObjectuivEXT(PP_Resource context_id, 1456 void GetQueryObjectuivEXT(PP_Resource context_id,
1457 GLuint id, 1457 GLuint id,
1458 GLenum pname, 1458 GLenum pname,
1459 GLuint* params) { 1459 GLuint* params) {
1460 Enter3D enter(context_id, true); 1460 Enter3D enter(context_id, true);
1461 if (enter.succeeded()) { 1461 if (enter.succeeded()) {
1462 ToGles2Impl(&enter)->GetQueryObjectuivEXT(id, pname, params); 1462 ToGles2Impl(&enter)->GetQueryObjectuivEXT(id, pname, params);
1463 } 1463 }
1464 } 1464 }
1465 1465
1466 void GetQueryObjectui64vEXT(PP_Resource context_id,
1467 GLuint id,
1468 GLenum pname,
1469 GLuint64* params) {
1470 Enter3D enter(context_id, true);
1471 if (enter.succeeded()) {
1472 ToGles2Impl(&enter)->GetQueryObjectui64vEXT(id, pname, params);
1473 }
1474 }
1475
1466 void GenVertexArraysOES(PP_Resource context_id, GLsizei n, GLuint* arrays) { 1476 void GenVertexArraysOES(PP_Resource context_id, GLsizei n, GLuint* arrays) {
1467 Enter3D enter(context_id, true); 1477 Enter3D enter(context_id, true);
1468 if (enter.succeeded()) { 1478 if (enter.succeeded()) {
1469 ToGles2Impl(&enter)->GenVertexArraysOES(n, arrays); 1479 ToGles2Impl(&enter)->GenVertexArraysOES(n, arrays);
1470 } 1480 }
1471 } 1481 }
1472 1482
1473 void DeleteVertexArraysOES(PP_Resource context_id, 1483 void DeleteVertexArraysOES(PP_Resource context_id,
1474 GLsizei n, 1484 GLsizei n,
1475 const GLuint* arrays) { 1485 const GLuint* arrays) {
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
1735 &VertexAttrib3fv, 1745 &VertexAttrib3fv,
1736 &VertexAttrib4f, 1746 &VertexAttrib4f,
1737 &VertexAttrib4fv, 1747 &VertexAttrib4fv,
1738 &VertexAttribPointer, 1748 &VertexAttribPointer,
1739 &Viewport}; 1749 &Viewport};
1740 return &ppb_opengles2; 1750 return &ppb_opengles2;
1741 } 1751 }
1742 const PPB_OpenGLES2InstancedArrays* 1752 const PPB_OpenGLES2InstancedArrays*
1743 PPB_OpenGLES2_Shared::GetInstancedArraysInterface() { 1753 PPB_OpenGLES2_Shared::GetInstancedArraysInterface() {
1744 static const struct PPB_OpenGLES2InstancedArrays ppb_opengles2 = { 1754 static const struct PPB_OpenGLES2InstancedArrays ppb_opengles2 = {
1745 &DrawArraysInstancedANGLE, 1755 &DrawArraysInstancedANGLE, &DrawElementsInstancedANGLE,
1746 &DrawElementsInstancedANGLE,
1747 &VertexAttribDivisorANGLE}; 1756 &VertexAttribDivisorANGLE};
1748 return &ppb_opengles2; 1757 return &ppb_opengles2;
1749 } 1758 }
1750 const PPB_OpenGLES2FramebufferBlit* 1759 const PPB_OpenGLES2FramebufferBlit*
1751 PPB_OpenGLES2_Shared::GetFramebufferBlitInterface() { 1760 PPB_OpenGLES2_Shared::GetFramebufferBlitInterface() {
1752 static const struct PPB_OpenGLES2FramebufferBlit ppb_opengles2 = { 1761 static const struct PPB_OpenGLES2FramebufferBlit ppb_opengles2 = {
1753 &BlitFramebufferEXT}; 1762 &BlitFramebufferEXT};
1754 return &ppb_opengles2; 1763 return &ppb_opengles2;
1755 } 1764 }
1756 const PPB_OpenGLES2FramebufferMultisample* 1765 const PPB_OpenGLES2FramebufferMultisample*
1757 PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface() { 1766 PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface() {
1758 static const struct PPB_OpenGLES2FramebufferMultisample ppb_opengles2 = { 1767 static const struct PPB_OpenGLES2FramebufferMultisample ppb_opengles2 = {
1759 &RenderbufferStorageMultisampleEXT}; 1768 &RenderbufferStorageMultisampleEXT};
1760 return &ppb_opengles2; 1769 return &ppb_opengles2;
1761 } 1770 }
1762 const PPB_OpenGLES2ChromiumEnableFeature* 1771 const PPB_OpenGLES2ChromiumEnableFeature*
1763 PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface() { 1772 PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface() {
1764 static const struct PPB_OpenGLES2ChromiumEnableFeature ppb_opengles2 = { 1773 static const struct PPB_OpenGLES2ChromiumEnableFeature ppb_opengles2 = {
1765 &EnableFeatureCHROMIUM}; 1774 &EnableFeatureCHROMIUM};
1766 return &ppb_opengles2; 1775 return &ppb_opengles2;
1767 } 1776 }
1768 const PPB_OpenGLES2ChromiumMapSub* 1777 const PPB_OpenGLES2ChromiumMapSub*
1769 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface() { 1778 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface() {
1770 static const struct PPB_OpenGLES2ChromiumMapSub ppb_opengles2 = { 1779 static const struct PPB_OpenGLES2ChromiumMapSub ppb_opengles2 = {
1771 &MapBufferSubDataCHROMIUM, 1780 &MapBufferSubDataCHROMIUM, &UnmapBufferSubDataCHROMIUM,
1772 &UnmapBufferSubDataCHROMIUM, 1781 &MapTexSubImage2DCHROMIUM, &UnmapTexSubImage2DCHROMIUM};
1773 &MapTexSubImage2DCHROMIUM,
1774 &UnmapTexSubImage2DCHROMIUM};
1775 return &ppb_opengles2; 1782 return &ppb_opengles2;
1776 } 1783 }
1777 const PPB_OpenGLES2Query* PPB_OpenGLES2_Shared::GetQueryInterface() { 1784 const PPB_OpenGLES2Query* PPB_OpenGLES2_Shared::GetQueryInterface() {
1778 static const struct PPB_OpenGLES2Query ppb_opengles2 = { 1785 static const struct PPB_OpenGLES2Query ppb_opengles2 = {
1779 &GenQueriesEXT, 1786 &GenQueriesEXT, &DeleteQueriesEXT, &IsQueryEXT,
1780 &DeleteQueriesEXT, 1787 &BeginQueryEXT, &EndQueryEXT, &GetQueryivEXT,
1781 &IsQueryEXT, 1788 &GetQueryObjectuivEXT, &GetQueryObjectui64vEXT};
1782 &BeginQueryEXT,
1783 &EndQueryEXT,
1784 &GetQueryivEXT,
1785 &GetQueryObjectuivEXT};
1786 return &ppb_opengles2; 1789 return &ppb_opengles2;
1787 } 1790 }
1788 const PPB_OpenGLES2VertexArrayObject* 1791 const PPB_OpenGLES2VertexArrayObject*
1789 PPB_OpenGLES2_Shared::GetVertexArrayObjectInterface() { 1792 PPB_OpenGLES2_Shared::GetVertexArrayObjectInterface() {
1790 static const struct PPB_OpenGLES2VertexArrayObject ppb_opengles2 = { 1793 static const struct PPB_OpenGLES2VertexArrayObject ppb_opengles2 = {
1791 &GenVertexArraysOES, 1794 &GenVertexArraysOES, &DeleteVertexArraysOES, &IsVertexArrayOES,
1792 &DeleteVertexArraysOES,
1793 &IsVertexArrayOES,
1794 &BindVertexArrayOES}; 1795 &BindVertexArrayOES};
1795 return &ppb_opengles2; 1796 return &ppb_opengles2;
1796 } 1797 }
1797 const PPB_OpenGLES2DrawBuffers_Dev* 1798 const PPB_OpenGLES2DrawBuffers_Dev*
1798 PPB_OpenGLES2_Shared::GetDrawBuffersInterface() { 1799 PPB_OpenGLES2_Shared::GetDrawBuffersInterface() {
1799 static const struct PPB_OpenGLES2DrawBuffers_Dev ppb_opengles2 = { 1800 static const struct PPB_OpenGLES2DrawBuffers_Dev ppb_opengles2 = {
1800 &DrawBuffersEXT}; 1801 &DrawBuffersEXT};
1801 return &ppb_opengles2; 1802 return &ppb_opengles2;
1802 } 1803 }
1803 } // namespace ppapi 1804 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698