Skip to content

Commit

Permalink
Update to Google Chrome 108.0.5359
Browse files Browse the repository at this point in the history
  • Loading branch information
halx99 committed Jan 24, 2023
1 parent 5944d91 commit c44c468
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion angle/build/config/win/BUILD.gn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Copyright 2013 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

Expand Down
4 changes: 2 additions & 2 deletions angle/build/toolchain/win/setup_toolchain.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Copyright 2013 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
Expand Down Expand Up @@ -289,7 +289,7 @@ def q(s): # Quote s if it contains spaces or other weird characters.

if (environment_block_name != ''):
env_block = _FormatAsEnvironmentBlock(env)
with open(environment_block_name, 'w') as f:
with open(environment_block_name, 'w', encoding='utf8') as f:
f.write(env_block)

print('vc_bin_dir = ' + gn_helpers.ToGNString(vc_bin_dir))
Expand Down
23 changes: 15 additions & 8 deletions angle/src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <versionhelpers.h>
#include <sstream>

#include "anglebase/no_destructor.h"
#include "common/tls.h"
#include "common/utilities.h"
#include "libANGLE/Buffer.h"
Expand Down Expand Up @@ -988,8 +989,7 @@ egl::Error Renderer11::initializeD3DDevice()

d3d11::SetDebugName(mDeviceContext, "DeviceContext", nullptr);

mAnnotator.initialize(mDeviceContext);
gl::InitializeDebugAnnotations(&mAnnotator);
mAnnotatorContext.initialize(mDeviceContext);

mDevice->QueryInterface(__uuidof(ID3D11Device1), reinterpret_cast<void **>(&mDevice1));

Expand All @@ -998,7 +998,11 @@ egl::Error Renderer11::initializeD3DDevice()

void Renderer11::setGlobalDebugAnnotator()
{
gl::InitializeDebugAnnotations(&mAnnotator);
static std::mutex gMutex;
static angle::base::NoDestructor<DebugAnnotator11> gGlobalAnnotator;

std::lock_guard<std::mutex> lg(gMutex);
gl::InitializeDebugAnnotations(gGlobalAnnotator.get());
}

// do any one-time device initialization
Expand Down Expand Up @@ -1100,7 +1104,10 @@ void Renderer11::populateRenderer11DeviceCaps()
{
mRenderer11DeviceCaps.supportsTypedUAVLoadAdditionalFormats =
d3d11Options2.TypedUAVLoadAdditionalFormats;
mRenderer11DeviceCaps.supportsRasterizerOrderViews = d3d11Options2.ROVsSupported;
if (!getFeatures().disableRasterizerOrderViews.enabled)
{
mRenderer11DeviceCaps.supportsRasterizerOrderViews = d3d11Options2.ROVsSupported;
}
}
}

Expand Down Expand Up @@ -2255,7 +2262,7 @@ void Renderer11::release()
{
mScratchMemoryBuffer.clear();

mAnnotator.release();
mAnnotatorContext.release();
gl::UninitializeDebugAnnotations();

releaseDeviceResources();
Expand Down Expand Up @@ -2413,7 +2420,7 @@ bool Renderer11::getShareHandleSupport() const
}

// PIX doesn't seem to support using share handles, so disable them.
if (gl::DebugAnnotationsActive())
if (mAnnotatorContext.getStatus())
{
mSupportsShareHandles = false;
return false;
Expand Down Expand Up @@ -4125,9 +4132,9 @@ gl::Version Renderer11::getMaxConformantESVersion() const
return std::min(getMaxSupportedESVersion(), gl::Version(3, 0));
}

gl::DebugAnnotator *Renderer11::getAnnotator()
DebugAnnotatorContext11 *Renderer11::getDebugAnnotatorContext()
{
return &mAnnotator;
return &mAnnotatorContext;
}

angle::Result Renderer11::dispatchCompute(const gl::Context *context,
Expand Down

0 comments on commit c44c468

Please sign in to comment.