gfx/angle/src/libGLESv2/renderer/RenderTarget.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 // RenderTarget.h: Defines an abstract wrapper class to manage IDirect3DSurface9
     8 // and ID3D11View objects belonging to renderbuffers.
    10 #ifndef LIBGLESV2_RENDERER_RENDERTARGET_H_
    11 #define LIBGLESV2_RENDERER_RENDERTARGET_H_
    13 #include "common/angleutils.h"
    15 namespace rx
    16 {
    17 class RenderTarget
    18 {
    19   public:
    20     RenderTarget()
    21     {
    22         mWidth = 0;
    23         mHeight = 0;
    24         mInternalFormat = GL_NONE;
    25         mActualFormat = GL_NONE;
    26         mSamples = 0;
    27     }
    29     virtual ~RenderTarget() {};
    31     GLsizei getWidth() { return mWidth; }
    32     GLsizei getHeight() { return mHeight; }
    33     GLenum getInternalFormat() { return mInternalFormat; }
    34     GLenum getActualFormat() { return mActualFormat; }
    35     GLsizei getSamples() { return mSamples; }
    37     struct Desc {
    38         GLsizei width;
    39         GLsizei height;
    40         GLenum  format;
    41     };
    43   protected:
    44     GLsizei mWidth;
    45     GLsizei mHeight;
    46     GLenum mInternalFormat;
    47     GLenum mActualFormat;
    48     GLsizei mSamples;
    50   private:
    51     DISALLOW_COPY_AND_ASSIGN(RenderTarget);
    52 };
    54 }
    56 #endif // LIBGLESV2_RENDERTARGET_H_

mercurial