aboutsummaryrefslogtreecommitdiffhomepage
path: root/obsolete/SkGLDevice_FBO.h
blob: c4ac6397e4daf23143c466dbf18a9314f6bb5ee3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

/*
 * Copyright 2011 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
#ifndef SkGLDevice_FBO_DEFINED
#define SkGLDevice_FBO_DEFINED

#include "SkGLDevice.h"

class SkGLDevice_FBO : public SkGLDevice {
public:
    SkGLDevice_FBO(const SkBitmap& bitmap, bool offscreen);
    virtual ~SkGLDevice_FBO();

    // overrides from SkGLDevice
    virtual void gainFocus(SkCanvas*);
    virtual TexOrientation bindDeviceAsTexture();

private:
    GLuint  fFBO;
    GLuint  fTextureID;

    typedef SkGLDevice INHERITED;
};

#endif