Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |