gfx/angle/src/libGLESv2/Query.h

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 //
     2 // Copyright (c) 2012 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 // Query.h: Defines the gl::Query class
     9 #ifndef LIBGLESV2_QUERY_H_
    10 #define LIBGLESV2_QUERY_H_
    12 #define GL_APICALL
    13 #include <GLES2/gl2.h>
    15 #include "common/angleutils.h"
    16 #include "common/RefCountObject.h"
    18 namespace rx
    19 {
    20 class Renderer;
    21 class QueryImpl;
    22 }
    24 namespace gl
    25 {
    27 class Query : public RefCountObject
    28 {
    29   public:
    30     Query(rx::Renderer *renderer, GLenum type, GLuint id);
    31     virtual ~Query();
    33     void begin();
    34     void end();
    36     GLuint getResult();
    37     GLboolean isResultAvailable();
    39     GLenum getType() const;
    41   private:
    42     DISALLOW_COPY_AND_ASSIGN(Query);
    44     rx::QueryImpl *mQuery;
    45 };
    47 }
    49 #endif   // LIBGLESV2_QUERY_H_

mercurial