blob: c4ac6397e4daf23143c466dbf18a9314f6bb5ee3 [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001
2/*
3 * Copyright 2011 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
reed@android.com8a1c16f2008-12-17 15:59:43 +00008#ifndef SkGLDevice_FBO_DEFINED
9#define SkGLDevice_FBO_DEFINED
10
11#include "SkGLDevice.h"
12
13class SkGLDevice_FBO : public SkGLDevice {
14public:
15 SkGLDevice_FBO(const SkBitmap& bitmap, bool offscreen);
16 virtual ~SkGLDevice_FBO();
17
18 // overrides from SkGLDevice
19 virtual void gainFocus(SkCanvas*);
20 virtual TexOrientation bindDeviceAsTexture();
21
22private:
23 GLuint fFBO;
24 GLuint fTextureID;
25
26 typedef SkGLDevice INHERITED;
27};
28
29#endif
30