Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1313)

Unified Diff: Source/platform/graphics/DeferredImageDecoderTest.cpp

Issue 794223003: Cheaper thread-safe atomic initialization of static references. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add type check for initial value Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/platform/graphics/DeferredImageDecoderTest.cpp
diff --git a/Source/platform/graphics/DeferredImageDecoderTest.cpp b/Source/platform/graphics/DeferredImageDecoderTest.cpp
index 884232b1d0c3c9038ead3ed1e450b559eb6bee96..28063d4fc2d7f36b793666551dbc06ad1d371277 100644
--- a/Source/platform/graphics/DeferredImageDecoderTest.cpp
+++ b/Source/platform/graphics/DeferredImageDecoderTest.cpp
@@ -72,7 +72,7 @@ class DeferredImageDecoderTest : public ::testing::Test, public MockImageDecoder
public:
virtual void SetUp() override
{
- ImageDecodingStore::instance()->setCacheLimitInBytes(1024 * 1024);
+ ImageDecodingStore::instance().setCacheLimitInBytes(1024 * 1024);
DeferredImageDecoder::setEnabled(true);
m_data = SharedBuffer::create(whitePNG, sizeof(whitePNG));
m_frameCount = 1;
@@ -91,7 +91,7 @@ public:
virtual void TearDown() override
{
- ImageDecodingStore::instance()->clear();
+ ImageDecodingStore::instance().clear();
}
virtual void decoderBeingDestroyed() override

Powered by Google App Engine
This is Rietveld 408576698