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

Side by Side Diff: cc/nine_patch_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 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 "nine_patch_layer_impl.h" 5 #include "nine_patch_layer_impl.h"
6 6
7 #include "base/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "cc/quad_sink.h" 9 #include "cc/quad_sink.h"
10 #include "cc/texture_draw_quad.h" 10 #include "cc/texture_draw_quad.h"
11 #include "ui/gfx/rect_f.h" 11 #include "ui/gfx/rect_f.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 NinePatchLayerImpl::NinePatchLayerImpl(LayerTreeHostImpl* hostImpl, int id) 15 NinePatchLayerImpl::NinePatchLayerImpl(LayerTreeImpl* treeImpl, int id)
16 : LayerImpl(hostImpl, id) 16 : LayerImpl(treeImpl, id)
17 , m_resourceId(0) 17 , m_resourceId(0)
18 { 18 {
19 } 19 }
20 20
21 NinePatchLayerImpl::~NinePatchLayerImpl() 21 NinePatchLayerImpl::~NinePatchLayerImpl()
22 { 22 {
23 } 23 }
24 24
25 ResourceProvider::ResourceId NinePatchLayerImpl::contentsResourceId() const 25 ResourceProvider::ResourceId NinePatchLayerImpl::contentsResourceId() const
26 { 26 {
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 list->AppendInteger(m_imageAperture.origin().x()); 172 list->AppendInteger(m_imageAperture.origin().x());
173 list->AppendInteger(m_imageAperture.origin().y()); 173 list->AppendInteger(m_imageAperture.origin().y());
174 list->AppendInteger(m_imageAperture.size().width()); 174 list->AppendInteger(m_imageAperture.size().width());
175 list->AppendInteger(m_imageAperture.size().height()); 175 list->AppendInteger(m_imageAperture.size().height());
176 result->Set("ImageAperture", list); 176 result->Set("ImageAperture", list);
177 177
178 return result; 178 return result;
179 } 179 }
180 180
181 } 181 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698