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

Unified Diff: cc/resources/single_release_callback_impl.cc

Issue 1535833002: Delete CC. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-5
Patch Set: rebase Created 4 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
« no previous file with comments | « cc/resources/single_release_callback_impl.h ('k') | cc/resources/texture_compressor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/single_release_callback_impl.cc
diff --git a/cc/resources/single_release_callback_impl.cc b/cc/resources/single_release_callback_impl.cc
deleted file mode 100644
index aef112ebf14af8c26d864358c32400b42979b25c..0000000000000000000000000000000000000000
--- a/cc/resources/single_release_callback_impl.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2014 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/resources/single_release_callback_impl.h"
-
-#include "base/callback_helpers.h"
-#include "base/logging.h"
-#include "cc/base/blocking_task_runner.h"
-
-namespace cc {
-
-SingleReleaseCallbackImpl::SingleReleaseCallbackImpl(
- const ReleaseCallbackImpl& callback)
- : has_been_run_(false), callback_(callback) {
- DCHECK(!callback_.is_null())
- << "Use a NULL SingleReleaseCallbackImpl for an empty callback.";
-}
-
-SingleReleaseCallbackImpl::~SingleReleaseCallbackImpl() {
- DCHECK(callback_.is_null() || has_been_run_)
- << "SingleReleaseCallbackImpl was never run.";
-}
-
-void SingleReleaseCallbackImpl::Run(
- uint32 sync_point,
- bool is_lost,
- BlockingTaskRunner* main_thread_task_runner) {
- DCHECK(!has_been_run_) << "SingleReleaseCallbackImpl was run more than once.";
- has_been_run_ = true;
- callback_.Run(sync_point, is_lost, main_thread_task_runner);
-}
-
-} // namespace cc
« no previous file with comments | « cc/resources/single_release_callback_impl.h ('k') | cc/resources/texture_compressor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698