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

Unified Diff: cc/scheduler/commit_earlyout_reason.cc

Issue 2493853002: cc/blimp: Proto Cleanup. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/scheduler/commit_earlyout_reason.h ('k') | cc/scheduler/commit_earlyout_reason_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scheduler/commit_earlyout_reason.cc
diff --git a/cc/scheduler/commit_earlyout_reason.cc b/cc/scheduler/commit_earlyout_reason.cc
deleted file mode 100644
index dc151c2bf1b5b1a530deb2fc97cf6d543e36acfc..0000000000000000000000000000000000000000
--- a/cc/scheduler/commit_earlyout_reason.cc
+++ /dev/null
@@ -1,47 +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/scheduler/commit_earlyout_reason.h"
-
-#include "cc/proto/commit_earlyout_reason.pb.h"
-
-namespace cc {
-
-CommitEarlyOutReason CommitEarlyOutReasonFromProtobuf(
- const proto::CommitEarlyOutReason& proto) {
- switch (proto.reason()) {
- case proto::CommitEarlyOutReason::ABORTED_COMPOSITOR_FRAME_SINK_LOST:
- return CommitEarlyOutReason::ABORTED_COMPOSITOR_FRAME_SINK_LOST;
- case proto::CommitEarlyOutReason::ABORTED_NOT_VISIBLE:
- return CommitEarlyOutReason::ABORTED_NOT_VISIBLE;
- case proto::CommitEarlyOutReason::ABORTED_DEFERRED_COMMIT:
- return CommitEarlyOutReason::ABORTED_DEFERRED_COMMIT;
- case proto::CommitEarlyOutReason::FINISHED_NO_UPDATES:
- return CommitEarlyOutReason::FINISHED_NO_UPDATES;
- }
- NOTREACHED();
- return CommitEarlyOutReason::ABORTED_COMPOSITOR_FRAME_SINK_LOST;
-}
-
-void CommitEarlyOutReasonToProtobuf(CommitEarlyOutReason reason,
- proto::CommitEarlyOutReason* proto) {
- switch (reason) {
- case CommitEarlyOutReason::ABORTED_COMPOSITOR_FRAME_SINK_LOST:
- proto->set_reason(
- proto::CommitEarlyOutReason::ABORTED_COMPOSITOR_FRAME_SINK_LOST);
- return;
- case CommitEarlyOutReason::ABORTED_NOT_VISIBLE:
- proto->set_reason(proto::CommitEarlyOutReason::ABORTED_NOT_VISIBLE);
- return;
- case CommitEarlyOutReason::ABORTED_DEFERRED_COMMIT:
- proto->set_reason(proto::CommitEarlyOutReason::ABORTED_DEFERRED_COMMIT);
- return;
- case CommitEarlyOutReason::FINISHED_NO_UPDATES:
- proto->set_reason(proto::CommitEarlyOutReason::FINISHED_NO_UPDATES);
- return;
- }
- NOTREACHED();
-}
-
-} // namespace cc
« no previous file with comments | « cc/scheduler/commit_earlyout_reason.h ('k') | cc/scheduler/commit_earlyout_reason_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698