gfx/angle/src/libGLESv2/renderer/QueryImpl.h

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     1 //
     2 // Copyright (c) 2013 The ANGLE Project Authors. All rights reserved.
     3 // Use of this source code is governed by a BSD-style license that can be
     4 // found in the LICENSE file.
     5 //
     7 // QueryImpl.h: Defines the abstract rx::QueryImpl class.
     9 #ifndef LIBGLESV2_RENDERER_QUERYIMPL_H_
    10 #define LIBGLESV2_RENDERER_QUERYIMPL_H_
    12 #include "common/angleutils.h"
    14 namespace rx
    15 {
    17 class QueryImpl
    18 {
    19   public:
    20     explicit QueryImpl(GLenum type) : mType(type), mStatus(GL_FALSE), mResult(0) { }
    21     virtual ~QueryImpl() { }
    23     virtual void begin() = 0;
    24     virtual void end() = 0;
    25     virtual GLuint getResult() = 0;
    26     virtual GLboolean isResultAvailable() = 0;
    28     GLenum getType() const { return mType; }
    30   protected:
    31     GLuint mResult;
    32     GLboolean mStatus;
    34   private:
    35     DISALLOW_COPY_AND_ASSIGN(QueryImpl);
    37     GLenum mType;
    38 };
    40 }
    42 #endif // LIBGLESV2_RENDERER_QUERYIMPL_H_

mercurial