forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split cc/base into separate GN source_set and clean deps
//cc/base is intended to be a set of low level utilities used by the rest of cc (and consumers of cc) and as such shouldn't contain dependencies on other parts of //cc. This splits the //cc/base files into a separate GN source_set so 'gn check' can examine dependencies and moves a few types that have dependencies on other types out: swap_promise is conceptually about swapping frames, so it goes into cc/output *swap_promise_monitor is dealing with swaps on trees, so it goes in cc/trees R=danakj@chromium.org Review URL: https://codereview.chromium.org/1002073002 Cr-Commit-Position: refs/heads/master@{#320796}
- Loading branch information
Showing
29 changed files
with
145 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Copyright 2015 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. | ||
|
||
source_set("base") { | ||
visibility = [ "//cc" ] | ||
|
||
sources = [ | ||
"completion_event.h", | ||
"delayed_unique_notifier.cc", | ||
"delayed_unique_notifier.h", | ||
"invalidation_region.cc", | ||
"invalidation_region.h", | ||
"math_util.cc", | ||
"math_util.h", | ||
"ref_counted_managed.h", | ||
"region.cc", | ||
"region.h", | ||
"rolling_time_delta_history.cc", | ||
"rolling_time_delta_history.h", | ||
"scoped_ptr_algorithm.h", | ||
"scoped_ptr_deque.h", | ||
"scoped_ptr_vector.h", | ||
"simple_enclosed_region.cc", | ||
"simple_enclosed_region.h", | ||
"switches.cc", | ||
"switches.h", | ||
"synced_property.h", | ||
"tiling_data.cc", | ||
"tiling_data.h", | ||
"time_util.h", | ||
"unique_notifier.cc", | ||
"unique_notifier.h", | ||
"util.h", | ||
] | ||
|
||
deps = [ | ||
"//base", | ||
"//base/third_party/dynamic_annotations", | ||
"//skia", | ||
"//ui/gfx", | ||
"//ui/gfx/geometry", | ||
] | ||
|
||
defines = [ "CC_IMPLEMENTATION=1" ] | ||
|
||
if (!is_debug && (is_win || is_android)) { | ||
configs -= [ "//build/config/compiler:optimize" ] | ||
configs += [ "//build/config/compiler:optimize_max" ] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Things within cc/base should not depend on things in cc/ outside of cc/base. | ||
include_rules = [ | ||
"-cc", | ||
"+cc/base", | ||
] | ||
|
||
# Tests can use things in cc/test | ||
specific_include_rules = { | ||
".*unittest\.cc": [ | ||
"+cc/test", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.