| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/render_surface_impl.h" | 5 #include "cc/layers/render_surface_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 if (visible_content_rect.IsEmpty()) | 150 if (visible_content_rect.IsEmpty()) |
| 151 return; | 151 return; |
| 152 | 152 |
| 153 SharedQuadState* shared_quad_state = quad_sink->CreateSharedQuadState(); | 153 SharedQuadState* shared_quad_state = quad_sink->CreateSharedQuadState(); |
| 154 shared_quad_state->SetAll(draw_transform, | 154 shared_quad_state->SetAll(draw_transform, |
| 155 content_rect_.size(), | 155 content_rect_.size(), |
| 156 content_rect_, | 156 content_rect_, |
| 157 clip_rect_, | 157 clip_rect_, |
| 158 is_clipped_, | 158 is_clipped_, |
| 159 draw_opacity_, | 159 draw_opacity_, |
| 160 owning_layer_->blend_mode()); | 160 owning_layer_->blend_mode(), |
| 161 owning_layer_->context_id()); |
| 161 | 162 |
| 162 if (owning_layer_->ShowDebugBorders()) { | 163 if (owning_layer_->ShowDebugBorders()) { |
| 163 SkColor color = for_replica ? | 164 SkColor color = for_replica ? |
| 164 DebugColors::SurfaceReplicaBorderColor() : | 165 DebugColors::SurfaceReplicaBorderColor() : |
| 165 DebugColors::SurfaceBorderColor(); | 166 DebugColors::SurfaceBorderColor(); |
| 166 float width = for_replica ? | 167 float width = for_replica ? |
| 167 DebugColors::SurfaceReplicaBorderWidth( | 168 DebugColors::SurfaceReplicaBorderWidth( |
| 168 owning_layer_->layer_tree_impl()) : | 169 owning_layer_->layer_tree_impl()) : |
| 169 DebugColors::SurfaceBorderWidth( | 170 DebugColors::SurfaceBorderWidth( |
| 170 owning_layer_->layer_tree_impl()); | 171 owning_layer_->layer_tree_impl()); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 for_replica, | 230 for_replica, |
| 230 mask_resource_id, | 231 mask_resource_id, |
| 231 contents_changed_since_last_frame, | 232 contents_changed_since_last_frame, |
| 232 mask_uv_rect, | 233 mask_uv_rect, |
| 233 owning_layer_->filters(), | 234 owning_layer_->filters(), |
| 234 owning_layer_->background_filters()); | 235 owning_layer_->background_filters()); |
| 235 quad_sink->Append(quad.PassAs<DrawQuad>()); | 236 quad_sink->Append(quad.PassAs<DrawQuad>()); |
| 236 } | 237 } |
| 237 | 238 |
| 238 } // namespace cc | 239 } // namespace cc |
| OLD | NEW |