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

Unified Diff: cc/output/context_provider.cc

Issue 2382443012: Revert of Idle cleanup for worker context (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « cc/output/context_provider.h ('k') | content/common/gpu/client/context_provider_command_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/context_provider.cc
diff --git a/cc/output/context_provider.cc b/cc/output/context_provider.cc
deleted file mode 100644
index 7842136c8f719e0ca05dc665202e991ffebcb017..0000000000000000000000000000000000000000
--- a/cc/output/context_provider.cc
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright (c) 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "cc/output/context_provider.h"
-
-namespace cc {
-
-ContextProvider::ScopedContextLock::ScopedContextLock(
- ContextProvider* context_provider)
- : context_provider_(context_provider),
- context_lock_(*context_provider_->GetLock()) {
- // Allow current thread to use |context_provider_|.
- context_provider_->DetachFromThread();
- busy_ = context_provider_->CacheController()->ClientBecameBusy();
-}
-
-ContextProvider::ScopedContextLock::~ScopedContextLock() {
- // Let ContextCacheController know we are no longer busy.
- context_provider_->CacheController()->ClientBecameNotBusy(std::move(busy_));
-
- // Allow usage by thread for which |context_provider_| is bound to.
- context_provider_->DetachFromThread();
-}
-
-} // namespace cc
« no previous file with comments | « cc/output/context_provider.h ('k') | content/common/gpu/client/context_provider_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698