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

Side by Side Diff: cc/layers/snap_point_list.cc

Issue 2767213003: First Implementation of Snapped Points
Patch Set: Rebase and format Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « cc/layers/snap_point_list.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "cc/layers/snap_point_list.h"
6
7 namespace cc {
8
9 bool SnapPoint::operator==(const SnapPoint& other) const {
10 return offset == other.offset && must_snap == other.must_snap &&
11 is_start == other.is_start && is_end == other.is_end;
12 }
13
14 bool SnapPoint::operator!=(const SnapPoint& other) const {
15 return !(*this == other);
16 }
17
18 SnapPointList::SnapPointList() {}
19
20 SnapPointList::SnapPointList(const SnapPointList& other) {
21 horizontal = other.horizontal;
22 vertical = other.vertical;
23 }
24
25 SnapPointList::~SnapPointList() {}
26
27 bool SnapPointList::operator==(const SnapPointList& other) const {
28 return horizontal == other.horizontal && vertical == other.vertical;
29 }
30
31 bool SnapPointList::operator!=(const SnapPointList& other) const {
32 return !(*this == other);
33 }
34
35 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/snap_point_list.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698