gfx/angle/src/libGLESv2/renderer/SwapChain9.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.

michael@0 1 //
michael@0 2 // Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
michael@0 3 // Use of this source code is governed by a BSD-style license that can be
michael@0 4 // found in the LICENSE file.
michael@0 5 //
michael@0 6
michael@0 7 // SwapChain9.h: Defines a back-end specific class for the D3D9 swap chain.
michael@0 8
michael@0 9 #ifndef LIBGLESV2_RENDERER_SWAPCHAIN9_H_
michael@0 10 #define LIBGLESV2_RENDERER_SWAPCHAIN9_H_
michael@0 11
michael@0 12 #include "common/angleutils.h"
michael@0 13 #include "libGLESv2/renderer/SwapChain.h"
michael@0 14
michael@0 15 namespace rx
michael@0 16 {
michael@0 17 class Renderer9;
michael@0 18
michael@0 19 class SwapChain9 : public SwapChain
michael@0 20 {
michael@0 21 public:
michael@0 22 SwapChain9(Renderer9 *renderer, HWND window, HANDLE shareHandle,
michael@0 23 GLenum backBufferFormat, GLenum depthBufferFormat);
michael@0 24 virtual ~SwapChain9();
michael@0 25
michael@0 26 EGLint resize(EGLint backbufferWidth, EGLint backbufferHeight);
michael@0 27 virtual EGLint reset(EGLint backbufferWidth, EGLint backbufferHeight, EGLint swapInterval);
michael@0 28 virtual EGLint swapRect(EGLint x, EGLint y, EGLint width, EGLint height);
michael@0 29 virtual void recreate();
michael@0 30
michael@0 31 virtual IDirect3DSurface9 *getRenderTarget();
michael@0 32 virtual IDirect3DSurface9 *getDepthStencil();
michael@0 33 virtual IDirect3DTexture9 *getOffscreenTexture();
michael@0 34
michael@0 35 static SwapChain9 *makeSwapChain9(SwapChain *swapChain);
michael@0 36
michael@0 37 private:
michael@0 38 DISALLOW_COPY_AND_ASSIGN(SwapChain9);
michael@0 39
michael@0 40 void release();
michael@0 41
michael@0 42 Renderer9 *mRenderer;
michael@0 43 EGLint mHeight;
michael@0 44 EGLint mWidth;
michael@0 45 EGLint mSwapInterval;
michael@0 46
michael@0 47 IDirect3DSwapChain9 *mSwapChain;
michael@0 48 IDirect3DSurface9 *mBackBuffer;
michael@0 49 IDirect3DSurface9 *mRenderTarget;
michael@0 50 IDirect3DSurface9 *mDepthStencil;
michael@0 51 IDirect3DTexture9* mOffscreenTexture;
michael@0 52 };
michael@0 53
michael@0 54 }
michael@0 55 #endif // LIBGLESV2_RENDERER_SWAPCHAIN9_H_

mercurial