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

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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 // Query11.h: Defines the rx::Query11 class which implements rx::QueryImpl.
     9 #ifndef LIBGLESV2_RENDERER_QUERY11_H_
    10 #define LIBGLESV2_RENDERER_QUERY11_H_
    12 #include "libGLESv2/renderer/QueryImpl.h"
    14 namespace rx
    15 {
    16 class Renderer11;
    18 class Query11 : public QueryImpl
    19 {
    20   public:
    21     Query11(rx::Renderer11 *renderer, GLenum type);
    22     virtual ~Query11();
    24     void begin();
    25     void end();
    26     GLuint getResult();
    27     GLboolean isResultAvailable();
    29   private:
    30     DISALLOW_COPY_AND_ASSIGN(Query11);
    32     GLboolean testQuery();
    34     rx::Renderer11 *mRenderer;
    35     ID3D11Query *mQuery;
    36 };
    38 }
    40 #endif // LIBGLESV2_RENDERER_QUERY11_H_

mercurial