epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 1 | |
| 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.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 8 | #ifndef SkGLDevice_FBO_DEFINED |
| 9 | #define SkGLDevice_FBO_DEFINED |
| 10 | |
| 11 | #include "SkGLDevice.h" |
| 12 | |
| 13 | class SkGLDevice_FBO : public SkGLDevice { |
| 14 | public: |
| 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 | |
| 22 | private: |
| 23 | GLuint fFBO; |
| 24 | GLuint fTextureID; |
| 25 | |
| 26 | typedef SkGLDevice INHERITED; |
| 27 | }; |
| 28 | |
| 29 | #endif |
| 30 | |