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

Side by Side Diff: cc/layers/painted_scrollbar_layer_impl.cc

Issue 637913003: Revert of "Converted LayerImpl::bounds() to return SizeF." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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
« no previous file with comments | « cc/layers/layer_impl_unittest.cc ('k') | cc/layers/picture_image_layer_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 } 68 }
69 69
70 void PaintedScrollbarLayerImpl::AppendQuads( 70 void PaintedScrollbarLayerImpl::AppendQuads(
71 RenderPass* render_pass, 71 RenderPass* render_pass,
72 const Occlusion& occlusion_in_content_space, 72 const Occlusion& occlusion_in_content_space,
73 AppendQuadsData* append_quads_data) { 73 AppendQuadsData* append_quads_data) {
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 content_bounds_rect(content_bounds()); 79 gfx::Rect content_bounds_rect(content_bounds());
79 80
80 SharedQuadState* shared_quad_state = 81 SharedQuadState* shared_quad_state =
81 render_pass->CreateAndAppendSharedQuadState(); 82 render_pass->CreateAndAppendSharedQuadState();
82 PopulateSharedQuadState(shared_quad_state); 83 PopulateSharedQuadState(shared_quad_state);
83 84
84 AppendDebugBorderQuad( 85 AppendDebugBorderQuad(
85 render_pass, content_bounds(), shared_quad_state, append_quads_data); 86 render_pass, content_bounds(), shared_quad_state, append_quads_data);
86 87
87 gfx::Rect thumb_quad_rect = ComputeThumbQuadRect(); 88 gfx::Rect thumb_quad_rect = ComputeThumbQuadRect();
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 180
180 bool PaintedScrollbarLayerImpl::IsThumbResizable() const { 181 bool PaintedScrollbarLayerImpl::IsThumbResizable() const {
181 return false; 182 return false;
182 } 183 }
183 184
184 const char* PaintedScrollbarLayerImpl::LayerTypeAsString() const { 185 const char* PaintedScrollbarLayerImpl::LayerTypeAsString() const {
185 return "cc::PaintedScrollbarLayerImpl"; 186 return "cc::PaintedScrollbarLayerImpl";
186 } 187 }
187 188
188 } // namespace cc 189 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_impl_unittest.cc ('k') | cc/layers/picture_image_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698