blob: 8b473585b62bee53703e180d1b8dd2a38705abe1 [file] [log] [blame]
[email protected]09d50362012-10-18 20:54:371// 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
10namespace gfx {
11
12// A GLImage that does nothing for unit tests.
13class 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_