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

Unified Diff: cc/base/swap_promise_monitor.cc

Issue 1013463003: Update from https://crrev.com/320931 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/base/swap_promise_monitor.h ('k') | cc/cc.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/swap_promise_monitor.cc
diff --git a/cc/base/swap_promise_monitor.cc b/cc/base/swap_promise_monitor.cc
deleted file mode 100644
index 0c04f35ebc4be7cd9076e011aa88655904ff8dcc..0000000000000000000000000000000000000000
--- a/cc/base/swap_promise_monitor.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2013 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 "base/logging.h"
-#include "cc/base/swap_promise_monitor.h"
-#include "cc/trees/layer_tree_host.h"
-#include "cc/trees/layer_tree_host_impl.h"
-
-namespace cc {
-
-SwapPromiseMonitor::SwapPromiseMonitor(LayerTreeHost* layer_tree_host,
- LayerTreeHostImpl* layer_tree_host_impl)
- : layer_tree_host_(layer_tree_host),
- layer_tree_host_impl_(layer_tree_host_impl) {
- DCHECK((layer_tree_host && !layer_tree_host_impl) ||
- (!layer_tree_host && layer_tree_host_impl));
- if (layer_tree_host_)
- layer_tree_host_->InsertSwapPromiseMonitor(this);
- if (layer_tree_host_impl_)
- layer_tree_host_impl_->InsertSwapPromiseMonitor(this);
-}
-
-SwapPromiseMonitor::~SwapPromiseMonitor() {
- if (layer_tree_host_)
- layer_tree_host_->RemoveSwapPromiseMonitor(this);
- if (layer_tree_host_impl_)
- layer_tree_host_impl_->RemoveSwapPromiseMonitor(this);
-}
-
-} // namespace cc
« no previous file with comments | « cc/base/swap_promise_monitor.h ('k') | cc/cc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698