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

Side by Side Diff: cc/texture_layer_impl.cc

Issue 11519018: [cc] Make LayerImpls point at LayerTreeImpl instead of LTHI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 "cc/texture_layer_impl.h" 5 #include "cc/texture_layer_impl.h"
6 6
7 #include "base/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "cc/quad_sink.h" 8 #include "cc/quad_sink.h"
9 #include "cc/renderer.h" 9 #include "cc/renderer.h"
10 #include "cc/texture_draw_quad.h" 10 #include "cc/texture_draw_quad.h"
11 11
12 namespace cc { 12 namespace cc {
13 13
14 TextureLayerImpl::TextureLayerImpl(LayerTreeHostImpl* hostImpl, int id) 14 TextureLayerImpl::TextureLayerImpl(LayerTreeImpl* treeImpl, int id)
15 : LayerImpl(hostImpl, id) 15 : LayerImpl(treeImpl, id)
16 , m_textureId(0) 16 , m_textureId(0)
17 , m_externalTextureResource(0) 17 , m_externalTextureResource(0)
18 , m_premultipliedAlpha(true) 18 , m_premultipliedAlpha(true)
19 , m_flipped(true) 19 , m_flipped(true)
20 , m_uvRect(0, 0, 1, 1) 20 , m_uvRect(0, 0, 1, 1)
21 { 21 {
22 } 22 }
23 23
24 TextureLayerImpl::~TextureLayerImpl() 24 TextureLayerImpl::~TextureLayerImpl()
25 { 25 {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 m_textureId = 0; 72 m_textureId = 0;
73 m_externalTextureResource = 0; 73 m_externalTextureResource = 0;
74 } 74 }
75 75
76 const char* TextureLayerImpl::layerTypeAsString() const 76 const char* TextureLayerImpl::layerTypeAsString() const
77 { 77 {
78 return "TextureLayer"; 78 return "TextureLayer";
79 } 79 }
80 80
81 } // namespace cc 81 } // namespace cc
OLDNEW
« cc/layer.h ('K') | « cc/texture_layer_impl.h ('k') | cc/texture_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698