[email protected] | 09d5036 | 2012-10-18 20:54:37 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef UI_GL_GL_IMAGE_STUB_H_ |
| 6 | #define UI_GL_GL_IMAGE_STUB_H_ |
| 7 | |
| 8 | #include "ui/gl/gl_image.h" |
| 9 | |
| 10 | namespace gfx { |
| 11 | |
| 12 | // A GLImage that does nothing for unit tests. |
| 13 | class GL_EXPORT GLImageStub : public GLImage { |
| 14 | public: |
| 15 | // Implement GLImage. |
| 16 | virtual void Destroy() OVERRIDE; |
| 17 | virtual gfx::Size GetSize() OVERRIDE; |
| 18 | virtual bool BindTexImage() OVERRIDE; |
| 19 | virtual void ReleaseTexImage() OVERRIDE; |
| 20 | |
| 21 | protected: |
| 22 | virtual ~GLImageStub(); |
| 23 | }; |
| 24 | |
| 25 | } // namespace gfx |
| 26 | |
| 27 | #endif // UI_GL_GL_IMAGE_STUB_H_ |