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

Side by Side Diff: ui/gl/gl_interface.h

Issue 10822029: Use EXT_robustness where available on GLES2 platforms to detect and respond to resets of the graphi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed GL interface mock. Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_GL_GL_INTERFACE_H_ 5 #ifndef UI_GL_GL_INTERFACE_H_
6 #define UI_GL_GL_INTERFACE_H_ 6 #define UI_GL_GL_INTERFACE_H_
7 7
8 // This file implements glue to a GL interface so we can mock it for unit 8 // This file implements glue to a GL interface so we can mock it for unit
9 // testing. It has to be Desktop GL, not GLES2 as it is used to test the service 9 // testing. It has to be Desktop GL, not GLES2 as it is used to test the service
10 // side code. 10 // side code.
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 virtual void FinishFenceNV(GLuint fence) = 0; 615 virtual void FinishFenceNV(GLuint fence) = 0;
616 616
617 virtual GLboolean IsFenceNV(GLuint fence) = 0; 617 virtual GLboolean IsFenceNV(GLuint fence) = 0;
618 618
619 virtual void GetFenceivNV(GLuint fence, GLenum pname, GLint *params) = 0; 619 virtual void GetFenceivNV(GLuint fence, GLenum pname, GLint *params) = 0;
620 620
621 virtual void SetSurfaceCHROMIUM(GLuint id) = 0; 621 virtual void SetSurfaceCHROMIUM(GLuint id) = 0;
622 622
623 virtual GLenum GetGraphicsResetStatusARB() = 0; 623 virtual GLenum GetGraphicsResetStatusARB() = 0;
624 624
625 virtual GLenum GetGraphicsResetStatusEXT() = 0;
626
625 virtual GLsync FenceSync(GLenum condition, GLbitfield flags) = 0; 627 virtual GLsync FenceSync(GLenum condition, GLbitfield flags) = 0;
626 628
627 virtual void DeleteSync(GLsync sync) = 0; 629 virtual void DeleteSync(GLsync sync) = 0;
628 630
629 virtual void GetSynciv(GLsync sync, 631 virtual void GetSynciv(GLsync sync,
630 GLenum pname, 632 GLenum pname,
631 GLsizei bufSize, 633 GLsizei bufSize,
632 GLsizei* length, 634 GLsizei* length,
633 GLint* values) = 0; 635 GLint* values) = 0;
634 636
(...skipping 10 matching lines...) Expand all
645 647
646 virtual void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) = 0; 648 virtual void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) = 0;
647 649
648 private: 650 private:
649 static GLInterface* interface_; 651 static GLInterface* interface_;
650 }; 652 };
651 653
652 } // namespace gfx 654 } // namespace gfx
653 655
654 #endif // UI_GL_GL_INTERFACE_H_ 656 #endif // UI_GL_GL_INTERFACE_H_
OLDNEW
« ui/gl/gl_fence.cc ('K') | « ui/gl/gl_fence.cc ('k') | ui/gl/gl_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698