From 4ae4177510e2af9661b6bff126ab6912a3dd1d6a Mon Sep 17 00:00:00 2001 From: Arman Uguray Date: Fri, 14 Apr 2023 12:00:27 -0700 Subject: [PATCH] [vello_encoding] Fixup copyright headers --- crates/encoding/src/binning.rs | 2 +- crates/encoding/src/clip.rs | 2 +- crates/encoding/src/config.rs | 3 +++ crates/encoding/src/draw.rs | 17 ++--------------- crates/encoding/src/encoding.rs | 17 ++--------------- crates/encoding/src/glyph.rs | 17 ++--------------- crates/encoding/src/glyph_cache.rs | 17 ++--------------- crates/encoding/src/image_cache.rs | 17 ++--------------- crates/encoding/src/lib.rs | 17 ++--------------- crates/encoding/src/math.rs | 17 ++--------------- crates/encoding/src/monoid.rs | 17 ++--------------- crates/encoding/src/path.rs | 17 ++--------------- crates/encoding/src/ramp_cache.rs | 17 ++--------------- crates/encoding/src/resolve.rs | 17 ++--------------- 14 files changed, 27 insertions(+), 167 deletions(-) diff --git a/crates/encoding/src/binning.rs b/crates/encoding/src/binning.rs index f9ec7d0..bd76fb8 100644 --- a/crates/encoding/src/binning.rs +++ b/crates/encoding/src/binning.rs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 The Vello authors // SPDX-License-Identifier: Apache-2.0 OR MIT use bytemuck::{Pod, Zeroable}; diff --git a/crates/encoding/src/clip.rs b/crates/encoding/src/clip.rs index 7006ea4..5a4e8f0 100644 --- a/crates/encoding/src/clip.rs +++ b/crates/encoding/src/clip.rs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 The Vello authors // SPDX-License-Identifier: Apache-2.0 OR MIT use bytemuck::{Pod, Zeroable}; diff --git a/crates/encoding/src/config.rs b/crates/encoding/src/config.rs index 71dab31..87728f3 100644 --- a/crates/encoding/src/config.rs +++ b/crates/encoding/src/config.rs @@ -1,3 +1,6 @@ +// Copyright 2023 The Vello authors +// SPDX-License-Identifier: Apache-2.0 OR MIT + use super::{ BinHeader, Clip, ClipBbox, ClipBic, ClipElement, Cubic, DrawBbox, DrawMonoid, Layout, Path, PathBbox, PathMonoid, PathSegment, Tile, diff --git a/crates/encoding/src/draw.rs b/crates/encoding/src/draw.rs index 40022c1..e26dacd 100644 --- a/crates/encoding/src/draw.rs +++ b/crates/encoding/src/draw.rs @@ -1,18 +1,5 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Also licensed under MIT license, at your choice. +// Copyright 2022 The Vello authors +// SPDX-License-Identifier: Apache-2.0 OR MIT use bytemuck::{Pod, Zeroable}; use peniko::{BlendMode, Color}; diff --git a/crates/encoding/src/encoding.rs b/crates/encoding/src/encoding.rs index ca72df3..65dcbbb 100644 --- a/crates/encoding/src/encoding.rs +++ b/crates/encoding/src/encoding.rs @@ -1,18 +1,5 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Also licensed under MIT license, at your choice. +// Copyright 2022 The Vello authors +// SPDX-License-Identifier: Apache-2.0 OR MIT use super::{ resolve::Patch, DrawColor, DrawImage, DrawLinearGradient, DrawRadialGradient, DrawTag, Glyph, diff --git a/crates/encoding/src/glyph.rs b/crates/encoding/src/glyph.rs index 6fe900e..116f02d 100644 --- a/crates/encoding/src/glyph.rs +++ b/crates/encoding/src/glyph.rs @@ -1,18 +1,5 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Also licensed under MIT license, at your choice. +// Copyright 2023 The Vello authors +// SPDX-License-Identifier: Apache-2.0 OR MIT use std::ops::Range; diff --git a/crates/encoding/src/glyph_cache.rs b/crates/encoding/src/glyph_cache.rs index 89de20a..b1ff693 100644 --- a/crates/encoding/src/glyph_cache.rs +++ b/crates/encoding/src/glyph_cache.rs @@ -1,18 +1,5 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Also licensed under MIT license, at your choice. +// Copyright 2022 The Vello authors +// SPDX-License-Identifier: Apache-2.0 OR MIT use std::collections::HashMap; diff --git a/crates/encoding/src/image_cache.rs b/crates/encoding/src/image_cache.rs index cd2734e..85b658e 100644 --- a/crates/encoding/src/image_cache.rs +++ b/crates/encoding/src/image_cache.rs @@ -1,18 +1,5 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Also licensed under MIT license, at your choice. +// Copyright 2022 The Vello authors +// SPDX-License-Identifier: Apache-2.0 OR MIT use guillotiere::{size2, AtlasAllocator}; use peniko::Image; diff --git a/crates/encoding/src/lib.rs b/crates/encoding/src/lib.rs index f5a1d6a..38da4a6 100644 --- a/crates/encoding/src/lib.rs +++ b/crates/encoding/src/lib.rs @@ -1,18 +1,5 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Also licensed under MIT license, at your choice. +// Copyright 2023 The Vello authors +// SPDX-License-Identifier: Apache-2.0 OR MIT //! Raw scene encoding. diff --git a/crates/encoding/src/math.rs b/crates/encoding/src/math.rs index b0afbb9..9ab9935 100644 --- a/crates/encoding/src/math.rs +++ b/crates/encoding/src/math.rs @@ -1,18 +1,5 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Also licensed under MIT license, at your choice. +// Copyright 2022 The Vello authors +// SPDX-License-Identifier: Apache-2.0 OR MIT use std::ops::Mul; diff --git a/crates/encoding/src/monoid.rs b/crates/encoding/src/monoid.rs index 37bca92..29768b1 100644 --- a/crates/encoding/src/monoid.rs +++ b/crates/encoding/src/monoid.rs @@ -1,18 +1,5 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Also licensed under MIT license, at your choice. +// Copyright 2022 The Vello authors +// SPDX-License-Identifier: Apache-2.0 OR MIT /// Interface for a monoid. The default value must be the identity of /// the monoid. diff --git a/crates/encoding/src/path.rs b/crates/encoding/src/path.rs index 9e20490..6c3cc5f 100644 --- a/crates/encoding/src/path.rs +++ b/crates/encoding/src/path.rs @@ -1,18 +1,5 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Also licensed under MIT license, at your choice. +// Copyright 2022 The Vello authors +// SPDX-License-Identifier: Apache-2.0 OR MIT use bytemuck::{Pod, Zeroable}; use peniko::kurbo::Shape; diff --git a/crates/encoding/src/ramp_cache.rs b/crates/encoding/src/ramp_cache.rs index 96f5c49..8b0eaa7 100644 --- a/crates/encoding/src/ramp_cache.rs +++ b/crates/encoding/src/ramp_cache.rs @@ -1,18 +1,5 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Also licensed under MIT license, at your choice. +// Copyright 2022 The Vello authors +// SPDX-License-Identifier: Apache-2.0 OR MIT use std::collections::HashMap; diff --git a/crates/encoding/src/resolve.rs b/crates/encoding/src/resolve.rs index 644aea0..f434ded 100644 --- a/crates/encoding/src/resolve.rs +++ b/crates/encoding/src/resolve.rs @@ -1,18 +1,5 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// Also licensed under MIT license, at your choice. +// Copyright 2022 The Vello authors +// SPDX-License-Identifier: Apache-2.0 OR MIT use std::ops::Range;