| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/layers/painted_scrollbar_layer_impl.h" | 5 #include "cc/layers/painted_scrollbar_layer_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "cc/animation/scrollbar_animation_controller.h" | 9 #include "cc/animation/scrollbar_animation_controller.h" |
| 10 #include "cc/layers/layer.h" | 10 #include "cc/layers/layer.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 bool premultipled_alpha = true; | 74 bool premultipled_alpha = true; |
| 75 bool flipped = false; | 75 bool flipped = false; |
| 76 gfx::PointF uv_top_left(0.f, 0.f); | 76 gfx::PointF uv_top_left(0.f, 0.f); |
| 77 gfx::PointF uv_bottom_right(1.f, 1.f); | 77 gfx::PointF uv_bottom_right(1.f, 1.f); |
| 78 gfx::Rect bounds_rect(bounds()); | 78 gfx::Rect bounds_rect(bounds()); |
| 79 gfx::Rect content_bounds_rect(content_bounds()); | 79 gfx::Rect content_bounds_rect(content_bounds()); |
| 80 | 80 |
| 81 SharedQuadState* shared_quad_state = quad_sink->CreateSharedQuadState(); | 81 SharedQuadState* shared_quad_state = quad_sink->CreateSharedQuadState(); |
| 82 PopulateSharedQuadState(shared_quad_state); | 82 PopulateSharedQuadState(shared_quad_state); |
| 83 | 83 |
| 84 AppendDebugBorderQuad(quad_sink, shared_quad_state, append_quads_data); | 84 AppendDebugBorderQuad( |
| 85 quad_sink, content_bounds(), shared_quad_state, append_quads_data); |
| 85 | 86 |
| 86 gfx::Rect thumb_quad_rect = ComputeThumbQuadRect(); | 87 gfx::Rect thumb_quad_rect = ComputeThumbQuadRect(); |
| 87 gfx::Rect visible_thumb_quad_rect = | 88 gfx::Rect visible_thumb_quad_rect = |
| 88 quad_sink->UnoccludedContentRect(thumb_quad_rect, draw_transform()); | 89 quad_sink->UnoccludedContentRect(thumb_quad_rect, draw_transform()); |
| 89 | 90 |
| 90 ResourceProvider::ResourceId thumb_resource_id = | 91 ResourceProvider::ResourceId thumb_resource_id = |
| 91 layer_tree_impl()->ResourceIdForUIResource(thumb_ui_resource_id_); | 92 layer_tree_impl()->ResourceIdForUIResource(thumb_ui_resource_id_); |
| 92 ResourceProvider::ResourceId track_resource_id = | 93 ResourceProvider::ResourceId track_resource_id = |
| 93 layer_tree_impl()->ResourceIdForUIResource(track_ui_resource_id_); | 94 layer_tree_impl()->ResourceIdForUIResource(track_ui_resource_id_); |
| 94 | 95 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 179 |
| 179 bool PaintedScrollbarLayerImpl::IsThumbResizable() const { | 180 bool PaintedScrollbarLayerImpl::IsThumbResizable() const { |
| 180 return false; | 181 return false; |
| 181 } | 182 } |
| 182 | 183 |
| 183 const char* PaintedScrollbarLayerImpl::LayerTypeAsString() const { | 184 const char* PaintedScrollbarLayerImpl::LayerTypeAsString() const { |
| 184 return "cc::PaintedScrollbarLayerImpl"; | 185 return "cc::PaintedScrollbarLayerImpl"; |
| 185 } | 186 } |
| 186 | 187 |
| 187 } // namespace cc | 188 } // namespace cc |
| OLD | NEW |