OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |