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

Unified Diff: content/common/cc_messages_unittest.cc

Issue 11308153: Migrate most of cc/ from WebKit::WebTransformationMatrix to gfx::Transform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to tip of tree and addressed feedback 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 side-by-side diff with in-line comments
Download patch
Index: content/common/cc_messages_unittest.cc
diff --git a/content/common/cc_messages_unittest.cc b/content/common/cc_messages_unittest.cc
index 7225b68f3f0065fc26aac804d686770139ab6afe..cae9c51d75cce32a3ec89b4b4c1b6a5d38086c96 100644
--- a/content/common/cc_messages_unittest.cc
+++ b/content/common/cc_messages_unittest.cc
@@ -23,9 +23,9 @@ using cc::TileDrawQuad;
using cc::StreamVideoDrawQuad;
using cc::VideoLayerImpl;
using cc::YUVVideoDrawQuad;
+using gfx::Transform;
using WebKit::WebFilterOperation;
using WebKit::WebFilterOperations;
-using WebKit::WebTransformationMatrix;
class CCMessagesTest : public testing::Test {
protected:
@@ -173,10 +173,10 @@ class CCMessagesTest : public testing::Test {
TEST_F(CCMessagesTest, AllQuads) {
IPC::Message msg(1, 2, IPC::Message::PRIORITY_NORMAL);
- WebTransformationMatrix arbitrary_matrix;
- arbitrary_matrix.scale(3);
- arbitrary_matrix.translate(-5, 20);
- arbitrary_matrix.rotate(15);
+ Transform arbitrary_matrix;
+ arbitrary_matrix.PreconcatScale(3, 3);
+ arbitrary_matrix.PreconcatTranslate(-5, 20);
+ arbitrary_matrix.PreconcatRotate(15);
gfx::Rect arbitrary_rect1(-5, 9, 3, 15);
gfx::Rect arbitrary_rect2(40, 23, 11, 7);
gfx::Rect arbitrary_rect3(7, -53, 22, 19);

Powered by Google App Engine
This is Rietveld 408576698