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

Side by Side Diff: ui/gfx/transform.h

Issue 368903003: Provide gtest printers for ui/gfx geometry types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add gfx_test_support dep to video_encode_accelerator_unittest Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/test/gfx_util.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_GFX_TRANSFORM_H_ 5 #ifndef UI_GFX_TRANSFORM_H_
6 #define UI_GFX_TRANSFORM_H_ 6 #define UI_GFX_TRANSFORM_H_
7 7
8 #include <iosfwd>
8 #include <string> 9 #include <string>
9 10
10 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
11 #include "third_party/skia/include/utils/SkMatrix44.h" 12 #include "third_party/skia/include/utils/SkMatrix44.h"
12 #include "ui/gfx/gfx_export.h" 13 #include "ui/gfx/gfx_export.h"
13 #include "ui/gfx/vector2d_f.h" 14 #include "ui/gfx/vector2d_f.h"
14 15
15 namespace gfx { 16 namespace gfx {
16 17
17 class BoxF; 18 class BoxF;
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 Point* point) const; 262 Point* point) const;
262 263
263 void TransformPointInternal(const SkMatrix44& xform, 264 void TransformPointInternal(const SkMatrix44& xform,
264 Point3F* point) const; 265 Point3F* point) const;
265 266
266 SkMatrix44 matrix_; 267 SkMatrix44 matrix_;
267 268
268 // copy/assign are allowed. 269 // copy/assign are allowed.
269 }; 270 };
270 271
272 // This is declared here for use in gtest-based unit tests but is defined in
273 // the gfx_test_support target. Depend on that to use this in your unit test.
274 // This should not be used in production code - call ToString() instead.
275 void PrintTo(const Transform& transform, ::std::ostream* os);
276
271 } // namespace gfx 277 } // namespace gfx
272 278
273 #endif // UI_GFX_TRANSFORM_H_ 279 #endif // UI_GFX_TRANSFORM_H_
OLDNEW
« no previous file with comments | « ui/gfx/test/gfx_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698