Edit

kc3-lang/angle/src/libGLESv2/precompiled.h

Branch :

  • Show log

    Commit

  • Author : Geoff Lang
    Date : 2014-02-18 17:14:19
    Hash : 94a9089b
    Message : Detect cross-process HWNDs and verify DXGI 1.2 exists in D3D11. DXGI 1.2 is required to create a swap chain for a HWND owned by another process. This fix will allow us to fall back to creating a Renderer9 if DXGI 1.2 is not available instead of failing to create the swap chain later. BUG=angle:562 Change-Id: I01b08ffb262bc3f9c86d244168df14eba52c5bdc Reviewed-on: https://chromium-review.googlesource.com/186980 Reviewed-by: Shannon Woods <shannonwoods@chromium.org> Tested-by: Geoff Lang <geofflang@chromium.org>

  • src/libGLESv2/precompiled.h
  • //
    // Copyright (c) 2013 The ANGLE Project Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style license that can be
    // found in the LICENSE file.
    //
    
    // precompiled.h: Precompiled header file for libGLESv2.
    
    #define GL_APICALL
    #include <GLES3/gl3.h>
    #include <GLES3/gl3ext.h>
    #include <GLES2/gl2.h>
    
    #define GL_GLEXT_PROTOTYPES
    #include <GLES2/gl2ext.h>
    
    #define EGLAPI
    #include <EGL/egl.h>
    
    #include <assert.h>
    #include <cstddef>
    #include <float.h>
    #include <stdint.h>
    #include <intrin.h>
    #include <math.h>
    #include <stdarg.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include <string.h>
    
    #include <algorithm> // for std::min and std::max
    #include <limits>
    #include <map>
    #include <set>
    #include <sstream>
    #include <string>
    #include <unordered_map>
    #include <vector>
    
    #if defined(ANGLE_ENABLE_D3D9)
    #include <d3d9.h>
    #include <D3Dcompiler.h>
    #endif // ANGLE_ENABLE_D3D9
    
    #if defined(ANGLE_ENABLE_D3D11)
    #include <D3D11.h>
    #include <dxgi.h>
    #include <dxgi1_2.h>
    #include <D3Dcompiler.h>
    #endif // ANGLE_ENABLE_D3D11