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

Side by Side Diff: webkit/compositor_bindings/web_image_layer_impl.cc

Issue 11231017: Remove ::create factory functions from objects created via WebCompositorSupport (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 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 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 "web_image_layer_impl.h" 5 #include "web_image_layer_impl.h"
6 6
7 #include "cc/image_layer.h" 7 #include "cc/image_layer.h"
8 #include "web_layer_impl.h" 8 #include "web_layer_impl.h"
9 9
10 using cc::ImageLayer; 10 using cc::ImageLayer;
11 11
12 namespace WebKit { 12 namespace WebKit {
13 13
14 WebImageLayer* WebImageLayer::create()
15 {
16 return new WebImageLayerImpl();
17 }
18
19 WebImageLayerImpl::WebImageLayerImpl() 14 WebImageLayerImpl::WebImageLayerImpl()
20 : m_layer(new WebLayerImpl(ImageLayer::create())) 15 : m_layer(new WebLayerImpl(ImageLayer::create()))
21 { 16 {
22 } 17 }
23 18
24 WebImageLayerImpl::~WebImageLayerImpl() 19 WebImageLayerImpl::~WebImageLayerImpl()
25 { 20 {
26 } 21 }
27 22
28 WebLayer* WebImageLayerImpl::layer() 23 WebLayer* WebImageLayerImpl::layer()
29 { 24 {
30 return m_layer.get(); 25 return m_layer.get();
31 } 26 }
32 27
33 void WebImageLayerImpl::setBitmap(SkBitmap bitmap) 28 void WebImageLayerImpl::setBitmap(SkBitmap bitmap)
34 { 29 {
35 static_cast<ImageLayer*>(m_layer->layer())->setBitmap(bitmap); 30 static_cast<ImageLayer*>(m_layer->layer())->setBitmap(bitmap);
36 } 31 }
37 32
38 } // namespace WebKit 33 } // namespace WebKit
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_float_animation_curve_impl.cc ('k') | webkit/compositor_bindings/web_io_surface_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698