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 "cc/picture_layer_impl.h" | 5 #include "cc/picture_layer_impl.h" |
6 | 6 |
7 #include "base/time.h" | 7 #include "base/time.h" |
8 #include "cc/append_quads_data.h" | 8 #include "cc/append_quads_data.h" |
9 #include "cc/checkerboard_draw_quad.h" | 9 #include "cc/checkerboard_draw_quad.h" |
10 #include "cc/debug_border_draw_quad.h" | 10 #include "cc/debug_border_draw_quad.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 PictureLayerImpl::~PictureLayerImpl() { | 36 PictureLayerImpl::~PictureLayerImpl() { |
37 } | 37 } |
38 | 38 |
39 const char* PictureLayerImpl::layerTypeAsString() const { | 39 const char* PictureLayerImpl::layerTypeAsString() const { |
40 return "PictureLayer"; | 40 return "PictureLayer"; |
41 } | 41 } |
42 | 42 |
43 void PictureLayerImpl::appendQuads(QuadSink& quadSink, | 43 void PictureLayerImpl::appendQuads(QuadSink& quadSink, |
44 AppendQuadsData& appendQuadsData) { | 44 AppendQuadsData& appendQuadsData) { |
45 | |
46 const gfx::Rect& rect = visibleContentRect(); | 45 const gfx::Rect& rect = visibleContentRect(); |
47 gfx::Rect content_rect(gfx::Point(), contentBounds()); | 46 gfx::Rect content_rect(gfx::Point(), contentBounds()); |
48 | 47 |
49 SharedQuadState* sharedQuadState = | 48 SharedQuadState* sharedQuadState = |
50 quadSink.useSharedQuadState(createSharedQuadState()); | 49 quadSink.useSharedQuadState(createSharedQuadState()); |
51 bool clipped = false; | 50 bool clipped = false; |
52 gfx::QuadF target_quad = MathUtil::mapQuad( | 51 gfx::QuadF target_quad = MathUtil::mapQuad( |
53 drawTransform(), | 52 drawTransform(), |
54 gfx::QuadF(rect), | 53 gfx::QuadF(rect), |
55 clipped); | 54 clipped); |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 if (std::find(used_tilings.begin(), used_tilings.end(), tiling) == | 446 if (std::find(used_tilings.begin(), used_tilings.end(), tiling) == |
448 used_tilings.end()) | 447 used_tilings.end()) |
449 to_remove.push_back(tiling); | 448 to_remove.push_back(tiling); |
450 } | 449 } |
451 | 450 |
452 for (size_t i = 0; i < to_remove.size(); ++i) | 451 for (size_t i = 0; i < to_remove.size(); ++i) |
453 tilings_.Remove(to_remove[i]); | 452 tilings_.Remove(to_remove[i]); |
454 } | 453 } |
455 | 454 |
456 } // namespace cc | 455 } // namespace cc |
OLD | NEW |