Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/opengl/gl2paintengineex/qtextureglyphcache_gl_p.h

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    6363class QGL2PaintEngineExPrivate;
    6464
    65 class QGLTextureGlyphCache : public QObject, public QTextureGlyphCache
     65class QTextureGlyphCache
    6666{
    6767    Q_OBJECT
     
    7373    virtual void resizeTextureData(int width, int height);
    7474    virtual void fillTexture(const Coord &c, glyph_t glyph);
    75     virtual int glyphMargin() const;
     75    virtual int glyphPadding() const;
     76    virtual int maxTextureWidth() const;
     77    virtual int maxTextureHeight() const;
    7678
    7779    inline GLuint texture() const { return m_texture; }
     
    8284    inline void setPaintEnginePrivate(QGL2PaintEngineExPrivate *p) { pex = p; }
    8385
     86
     87
     88
     89
     90
     91
     92
     93
     94
    8495
    8596public Q_SLOTS:
     
    91102                // destroy the fbo and texture here, but since the context
    92103                // is about to be destroyed, the GL server will do the
    93                 // clean up for us anyway
     104                // clean up for us anyway. We reset everything, so that the
     105                // glyph cache object can be reused later by setting a new
     106                // context on it.
    94107                m_fbo = 0;
    95108                m_texture = 0;
    96109                ctx = 0;
     110
     111
     112
     113
     114
     115
     116
     117
    97118            } else {
    98119                // since the context holding the texture is shared, and
     
    103124        }
    104125    }
     126
     127
    105128
    106129private:
     
    116139
    117140    QGLShaderProgram *m_program;
     141
     142
    118143};
    119144
Note: See TracChangeset for help on using the changeset viewer.