| OLD | NEW |
| 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 #include "webkit/compositor_bindings/web_compositor_support_impl.h" | 5 #include "webkit/compositor_bindings/web_compositor_support_impl.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
| 9 #include "cc/animation/transform_operations.h" | 9 #include "cc/animation/transform_operations.h" |
| 10 #include "cc/base/thread_impl.h" | 10 #include "cc/base/thread_impl.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 return new WebLayerImpl(); | 50 return new WebLayerImpl(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 WebContentLayer* WebCompositorSupportImpl::createContentLayer( | 53 WebContentLayer* WebCompositorSupportImpl::createContentLayer( |
| 54 WebContentLayerClient* client) { | 54 WebContentLayerClient* client) { |
| 55 return new WebContentLayerImpl(client); | 55 return new WebContentLayerImpl(client); |
| 56 } | 56 } |
| 57 | 57 |
| 58 WebExternalTextureLayer* WebCompositorSupportImpl::createExternalTextureLayer( | 58 WebExternalTextureLayer* WebCompositorSupportImpl::createExternalTextureLayer( |
| 59 WebExternalTextureLayerClient* client) { | 59 WebExternalTextureLayerClient* client) { |
| 60 return new WebExternalTextureLayerImpl(client); | 60 return new WebExternalTextureLayerImpl(client, false); |
| 61 } |
| 62 |
| 63 WebExternalTextureLayer* |
| 64 WebCompositorSupportImpl::createExternalTextureLayerForMailbox( |
| 65 WebExternalTextureLayerClient* client) { |
| 66 return new WebExternalTextureLayerImpl(client, true); |
| 61 } | 67 } |
| 62 | 68 |
| 63 WebKit::WebImageLayer* WebCompositorSupportImpl::createImageLayer() { | 69 WebKit::WebImageLayer* WebCompositorSupportImpl::createImageLayer() { |
| 64 return new WebImageLayerImpl(); | 70 return new WebImageLayerImpl(); |
| 65 } | 71 } |
| 66 | 72 |
| 67 WebSolidColorLayer* WebCompositorSupportImpl::createSolidColorLayer() { | 73 WebSolidColorLayer* WebCompositorSupportImpl::createSolidColorLayer() { |
| 68 return new WebSolidColorLayerImpl(); | 74 return new WebSolidColorLayerImpl(); |
| 69 } | 75 } |
| 70 | 76 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 89 WebTransformAnimationCurve* | 95 WebTransformAnimationCurve* |
| 90 WebCompositorSupportImpl::createTransformAnimationCurve() { | 96 WebCompositorSupportImpl::createTransformAnimationCurve() { |
| 91 return new WebTransformAnimationCurveImpl(); | 97 return new WebTransformAnimationCurveImpl(); |
| 92 } | 98 } |
| 93 | 99 |
| 94 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { | 100 WebTransformOperations* WebCompositorSupportImpl::createTransformOperations() { |
| 95 return new WebTransformOperationsImpl(); | 101 return new WebTransformOperationsImpl(); |
| 96 } | 102 } |
| 97 | 103 |
| 98 } // namespace webkit | 104 } // namespace webkit |
| OLD | NEW |