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

Unified Diff: cc/transform_operations.cc

Issue 11644004: Only create instances of WebTransformOperations using cc::TransformOperations::Create (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase, and fix WebTransformAnimationCurveImpl Created 8 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 side-by-side diff with in-line comments
Download patch
Index: cc/transform_operations.cc
diff --git a/cc/transform_operations.cc b/cc/transform_operations.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e198a81ab6dc2c4f6b2fc3e66dafd6937f29ca69
--- /dev/null
+++ b/cc/transform_operations.cc
@@ -0,0 +1,29 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "cc/transform_operations.h"
+#include <public/WebTransformOperations.h>
jamesr 2012/12/20 19:52:25 "third_party/WebKit/.....", please
+
+namespace cc {
+
+// static
+WebKit::WebTransformOperations* TransformOperations::Create() {
+#ifdef WEBKIT_WEB_TRANSFORM_OPERATIONS_USE_CREATE
jamesr 2012/12/20 19:52:25 no more ::create()s, please! Just call the constr
+ return WebKit::WebTransformOperations::create();
+#else
+ return new WebKit::WebTransformOperations();
+#endif
+}
+
+// static
+WebKit::WebTransformOperations* TransformOperations::Create(
+ const WebKit::WebTransformOperations& prototype) {
+#ifdef WEBKIT_WEB_TRANSFORM_OPERATIONS_USE_CREATE
+ return WebKit::WebTransformOperations::create(prototype);
+#else
+ return new WebKit::WebTransformOperations(prototype);
+#endif
+}
+
+} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698