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

Side by Side Diff: cc/output/layer_quad.cc

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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/output/layer_quad.h ('k') | cc/output/managed_memory_policy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/output/layer_quad.h" 5 #include "cc/output/layer_quad.h"
6 6
7 #include <stddef.h>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "ui/gfx/geometry/quad_f.h" 10 #include "ui/gfx/geometry/quad_f.h"
9 11
10 namespace cc { 12 namespace cc {
11 13
12 LayerQuad::Edge::Edge(const gfx::PointF& p, const gfx::PointF& q) { 14 LayerQuad::Edge::Edge(const gfx::PointF& p, const gfx::PointF& q) {
13 if (p == q) { 15 if (p == q) {
14 degenerate_ = true; 16 degenerate_ = true;
15 return; 17 return;
16 } 18 }
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 flattened[10] = right_.y(); 117 flattened[10] = right_.y();
116 flattened[11] = right_.z(); 118 flattened[11] = right_.z();
117 } else { 119 } else {
118 flattened[9] = bottom_.x(); 120 flattened[9] = bottom_.x();
119 flattened[10] = bottom_.y(); 121 flattened[10] = bottom_.y();
120 flattened[11] = bottom_.z(); 122 flattened[11] = bottom_.z();
121 } 123 }
122 } 124 }
123 125
124 } // namespace cc 126 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/layer_quad.h ('k') | cc/output/managed_memory_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698