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

Side by Side Diff: webkit/compositor_bindings/web_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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_layer_impl.h" 5 #include "web_layer_impl.h"
6 6
7 #include "SkMatrix44.h" 7 #include "SkMatrix44.h"
8 #ifdef LOG 8 #ifdef LOG
9 #undef LOG 9 #undef LOG
10 #endif 10 #endif
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 skMatrix.set(3, 2, SkDoubleToMScalar(matrix.m34())); 52 skMatrix.set(3, 2, SkDoubleToMScalar(matrix.m34()));
53 skMatrix.set(0, 3, SkDoubleToMScalar(matrix.m41())); 53 skMatrix.set(0, 3, SkDoubleToMScalar(matrix.m41()));
54 skMatrix.set(1, 3, SkDoubleToMScalar(matrix.m42())); 54 skMatrix.set(1, 3, SkDoubleToMScalar(matrix.m42()));
55 skMatrix.set(2, 3, SkDoubleToMScalar(matrix.m43())); 55 skMatrix.set(2, 3, SkDoubleToMScalar(matrix.m43()));
56 skMatrix.set(3, 3, SkDoubleToMScalar(matrix.m44())); 56 skMatrix.set(3, 3, SkDoubleToMScalar(matrix.m44()));
57 return skMatrix; 57 return skMatrix;
58 } 58 }
59 59
60 } 60 }
61 61
62 WebLayer* WebLayer::create()
63 {
64 return new WebLayerImpl();
65 }
66
67 WebLayerImpl::WebLayerImpl() 62 WebLayerImpl::WebLayerImpl()
68 : m_layer(Layer::create()) 63 : m_layer(Layer::create())
69 { 64 {
70 } 65 }
71 66
72 WebLayerImpl::WebLayerImpl(scoped_refptr<Layer> layer) 67 WebLayerImpl::WebLayerImpl(scoped_refptr<Layer> layer)
73 : m_layer(layer) 68 : m_layer(layer)
74 { 69 {
75 } 70 }
76 71
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 { 458 {
464 m_layer->setLayerScrollClient(scrollClient); 459 m_layer->setLayerScrollClient(scrollClient);
465 } 460 }
466 461
467 Layer* WebLayerImpl::layer() const 462 Layer* WebLayerImpl::layer() const
468 { 463 {
469 return m_layer.get(); 464 return m_layer.get();
470 } 465 }
471 466
472 } // namespace WebKit 467 } // namespace WebKit
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_io_surface_layer_impl.cc ('k') | webkit/compositor_bindings/web_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698