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 "cc/layers/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/layers/quad_sink.h" | 9 #include "cc/layers/quad_sink.h" |
10 #include "cc/quads/texture_draw_quad.h" | 10 #include "cc/quads/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(LayerTreeImpl* tree_impl, int id) | 15 NinePatchLayerImpl::NinePatchLayerImpl(LayerTreeImpl* tree_impl, int id) |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 | 291 |
292 list = new base::ListValue; | 292 list = new base::ListValue; |
293 list->AppendInteger(image_bounds_.width()); | 293 list->AppendInteger(image_bounds_.width()); |
294 list->AppendInteger(image_bounds_.height()); | 294 list->AppendInteger(image_bounds_.height()); |
295 result->Set("ImageBounds", list); | 295 result->Set("ImageBounds", list); |
296 | 296 |
297 return result; | 297 return result; |
298 } | 298 } |
299 | 299 |
300 } // namespace cc | 300 } // namespace cc |
OLD | NEW |