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

Side by Side Diff: cc/io_surface_layer.cc

Issue 11189043: cc: Rename cc classes and members to match filenames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months 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 "config.h" 5 #include "config.h"
6 6
7 #include "cc/io_surface_layer.h" 7 #include "cc/io_surface_layer.h"
8 8
9 #include "CCIOSurfaceLayerImpl.h" 9 #include "CCIOSurfaceLayerImpl.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 scoped_refptr<IOSurfaceLayerChromium> IOSurfaceLayerChromium::create() 13 scoped_refptr<IOSurfaceLayer> IOSurfaceLayer::create()
14 { 14 {
15 return make_scoped_refptr(new IOSurfaceLayerChromium()); 15 return make_scoped_refptr(new IOSurfaceLayer());
16 } 16 }
17 17
18 IOSurfaceLayerChromium::IOSurfaceLayerChromium() 18 IOSurfaceLayer::IOSurfaceLayer()
19 : LayerChromium() 19 : Layer()
20 , m_ioSurfaceId(0) 20 , m_ioSurfaceId(0)
21 { 21 {
22 } 22 }
23 23
24 IOSurfaceLayerChromium::~IOSurfaceLayerChromium() 24 IOSurfaceLayer::~IOSurfaceLayer()
25 { 25 {
26 } 26 }
27 27
28 void IOSurfaceLayerChromium::setIOSurfaceProperties(uint32_t ioSurfaceId, const IntSize& size) 28 void IOSurfaceLayer::setIOSurfaceProperties(uint32_t ioSurfaceId, const IntSize& size)
29 { 29 {
30 m_ioSurfaceId = ioSurfaceId; 30 m_ioSurfaceId = ioSurfaceId;
31 m_ioSurfaceSize = size; 31 m_ioSurfaceSize = size;
32 setNeedsCommit(); 32 setNeedsCommit();
33 } 33 }
34 34
35 scoped_ptr<CCLayerImpl> IOSurfaceLayerChromium::createCCLayerImpl() 35 scoped_ptr<LayerImpl> IOSurfaceLayer::createLayerImpl()
36 { 36 {
37 return CCIOSurfaceLayerImpl::create(m_layerId).PassAs<CCLayerImpl>(); 37 return IOSurfaceLayerImpl::create(m_layerId).PassAs<LayerImpl>();
38 } 38 }
39 39
40 bool IOSurfaceLayerChromium::drawsContent() const 40 bool IOSurfaceLayer::drawsContent() const
41 { 41 {
42 return m_ioSurfaceId && LayerChromium::drawsContent(); 42 return m_ioSurfaceId && Layer::drawsContent();
43 } 43 }
44 44
45 void IOSurfaceLayerChromium::pushPropertiesTo(CCLayerImpl* layer) 45 void IOSurfaceLayer::pushPropertiesTo(LayerImpl* layer)
46 { 46 {
47 LayerChromium::pushPropertiesTo(layer); 47 Layer::pushPropertiesTo(layer);
48 48
49 CCIOSurfaceLayerImpl* textureLayer = static_cast<CCIOSurfaceLayerImpl*>(laye r); 49 IOSurfaceLayerImpl* textureLayer = static_cast<IOSurfaceLayerImpl*>(layer);
50 textureLayer->setIOSurfaceProperties(m_ioSurfaceId, m_ioSurfaceSize); 50 textureLayer->setIOSurfaceProperties(m_ioSurfaceId, m_ioSurfaceSize);
51 } 51 }
52 52
53 } 53 }
OLDNEW
« cc/active_animation.h ('K') | « cc/io_surface_layer.h ('k') | cc/io_surface_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698