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

Side by Side Diff: cc/texture_layer.cc

Issue 11144023: cc: Store tiles, painters, tiling data in scoped_ptr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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
« no previous file with comments | « cc/skpicture_canvas_layer_texture_updater.cc ('k') | cc/tiled_layer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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 "TextureLayerChromium.h" 7 #include "TextureLayerChromium.h"
8 8
9 #include "CCLayerTreeHost.h" 9 #include "CCLayerTreeHost.h"
10 #include "CCTextureLayerImpl.h" 10 #include "CCTextureLayerImpl.h"
11 #include "GraphicsContext3D.h"
12 #include "TextureLayerChromiumClient.h" 11 #include "TextureLayerChromiumClient.h"
13 #include <public/WebGraphicsContext3D.h>
14 12
15 namespace cc { 13 namespace cc {
16 14
17 scoped_refptr<TextureLayerChromium> TextureLayerChromium::create(TextureLayerChr omiumClient* client) 15 scoped_refptr<TextureLayerChromium> TextureLayerChromium::create(TextureLayerChr omiumClient* client)
18 { 16 {
19 return scoped_refptr<TextureLayerChromium>(new TextureLayerChromium(client)) ; 17 return scoped_refptr<TextureLayerChromium>(new TextureLayerChromium(client)) ;
20 } 18 }
21 19
22 TextureLayerChromium::TextureLayerChromium(TextureLayerChromiumClient* client) 20 TextureLayerChromium::TextureLayerChromium(TextureLayerChromiumClient* client)
23 : LayerChromium() 21 : LayerChromium()
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 LayerChromium::pushPropertiesTo(layer); 121 LayerChromium::pushPropertiesTo(layer);
124 122
125 CCTextureLayerImpl* textureLayer = static_cast<CCTextureLayerImpl*>(layer); 123 CCTextureLayerImpl* textureLayer = static_cast<CCTextureLayerImpl*>(layer);
126 textureLayer->setFlipped(m_flipped); 124 textureLayer->setFlipped(m_flipped);
127 textureLayer->setUVRect(m_uvRect); 125 textureLayer->setUVRect(m_uvRect);
128 textureLayer->setPremultipliedAlpha(m_premultipliedAlpha); 126 textureLayer->setPremultipliedAlpha(m_premultipliedAlpha);
129 textureLayer->setTextureId(m_textureId); 127 textureLayer->setTextureId(m_textureId);
130 } 128 }
131 129
132 } 130 }
OLDNEW
« no previous file with comments | « cc/skpicture_canvas_layer_texture_updater.cc ('k') | cc/tiled_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698