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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2012 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 #include "cc/transform_operations.h"
6 #include <public/WebTransformOperations.h>
jamesr 2012/12/20 19:52:25 "third_party/WebKit/.....", please
7
8 namespace cc {
9
10 // static
11 WebKit::WebTransformOperations* TransformOperations::Create() {
12 #ifdef WEBKIT_WEB_TRANSFORM_OPERATIONS_USE_CREATE
jamesr 2012/12/20 19:52:25 no more ::create()s, please! Just call the constr
13 return WebKit::WebTransformOperations::create();
14 #else
15 return new WebKit::WebTransformOperations();
16 #endif
17 }
18
19 // static
20 WebKit::WebTransformOperations* TransformOperations::Create(
21 const WebKit::WebTransformOperations& prototype) {
22 #ifdef WEBKIT_WEB_TRANSFORM_OPERATIONS_USE_CREATE
23 return WebKit::WebTransformOperations::create(prototype);
24 #else
25 return new WebKit::WebTransformOperations(prototype);
26 #endif
27 }
28
29 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698