| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 implements glue to a GL interface so we can mock it for unit | 5 // This file implements glue to a GL interface so we can mock it for unit |
| 6 // testing. It has to be Desktop GL, not GLES2 as it is used to test the service | 6 // testing. It has to be Desktop GL, not GLES2 as it is used to test the service |
| 7 // side code. | 7 // side code. |
| 8 | 8 |
| 9 #ifndef APP_GFX_GL_GL_INTERFACE_H_ | 9 #ifndef UI_GFX_GL_GL_INTERFACE_H_ |
| 10 #define APP_GFX_GL_GL_INTERFACE_H_ | 10 #define UI_GFX_GL_GL_INTERFACE_H_ |
| 11 #pragma once | 11 #pragma once |
| 12 | 12 |
| 13 #include "app/gfx/gl/gl_bindings.h" | 13 #include "ui/gfx/gl/gl_bindings.h" |
| 14 | 14 |
| 15 namespace gfx { | 15 namespace gfx { |
| 16 | 16 |
| 17 class GLInterface { | 17 class GLInterface { |
| 18 public: | 18 public: |
| 19 virtual ~GLInterface() { | 19 virtual ~GLInterface() { |
| 20 } | 20 } |
| 21 | 21 |
| 22 static void SetGLInterface(GLInterface* gl_interface); | 22 static void SetGLInterface(GLInterface* gl_interface); |
| 23 | 23 |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 virtual GLboolean IsFenceNV(GLuint fence) = 0; | 426 virtual GLboolean IsFenceNV(GLuint fence) = 0; |
| 427 | 427 |
| 428 virtual void GetFenceivNV(GLuint fence, GLenum pname, GLint *params) = 0; | 428 virtual void GetFenceivNV(GLuint fence, GLenum pname, GLint *params) = 0; |
| 429 | 429 |
| 430 private: | 430 private: |
| 431 static GLInterface* interface_; | 431 static GLInterface* interface_; |
| 432 }; | 432 }; |
| 433 | 433 |
| 434 } // namespace gfx | 434 } // namespace gfx |
| 435 | 435 |
| 436 #endif // APP_GFX_GL_GL_INTERFACE_H_ | 436 #endif // UI_GFX_GL_GL_INTERFACE_H_ |
| OLD | NEW |