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

Side by Side Diff: cc/geometry.h

Issue 11264056: cc: Use gfx:: Geometry types for positions, bounds, and related things. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebaseagain Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2010 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 #ifndef CC_GEOMETRY_H_
6 #define CC_GEOMETRY_H_
7
8 #include "ui/gfx/size.h"
9 #include "ui/gfx/vector2d_f.h"
10 #include <cmath>
11
12 namespace cc {
13
14 inline gfx::Size ClampSizeFromAbove(gfx::Size s, gfx::Size other) {
15 return gfx::Size(s.width() < other.width() ? s.width() : other.width(),
16 s.height() < other.height() ? s.height() : other.height());
17 }
18
19 } // namespace cc
20
21 #endif // CC_GEOMETRY_H_
OLDNEW
« cc/font_atlas.h ('K') | « cc/font_atlas.cc ('k') | cc/gl_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698