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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 int sorting_context_id = | 382 int sorting_context_id = |
383 property_trees->transform_tree.Node(TransformTreeIndex()) | 383 property_trees->transform_tree.Node(TransformTreeIndex()) |
384 ->sorting_context_id; | 384 ->sorting_context_id; |
385 SharedQuadState* shared_quad_state = | 385 SharedQuadState* shared_quad_state = |
386 render_pass->CreateAndAppendSharedQuadState(); | 386 render_pass->CreateAndAppendSharedQuadState(); |
387 shared_quad_state->SetAll( | 387 shared_quad_state->SetAll( |
388 draw_transform(), content_rect().size(), content_rect(), | 388 draw_transform(), content_rect().size(), content_rect(), |
389 draw_properties_.clip_rect, draw_properties_.is_clipped, | 389 draw_properties_.clip_rect, draw_properties_.is_clipped, |
390 draw_properties_.draw_opacity, BlendMode(), sorting_context_id); | 390 draw_properties_.draw_opacity, BlendMode(), sorting_context_id); |
391 | 391 |
392 if (layer_tree_impl_->debug_state().show_debug_borders) { | 392 if (layer_tree_impl_->debug_state().show_debug_borders.test( |
| 393 DebugBorderType::RENDERPASS)) { |
393 DebugBorderDrawQuad* debug_border_quad = | 394 DebugBorderDrawQuad* debug_border_quad = |
394 render_pass->CreateAndAppendDrawQuad<DebugBorderDrawQuad>(); | 395 render_pass->CreateAndAppendDrawQuad<DebugBorderDrawQuad>(); |
395 debug_border_quad->SetNew(shared_quad_state, content_rect(), | 396 debug_border_quad->SetNew(shared_quad_state, content_rect(), |
396 visible_layer_rect, GetDebugBorderColor(), | 397 visible_layer_rect, GetDebugBorderColor(), |
397 GetDebugBorderWidth()); | 398 GetDebugBorderWidth()); |
398 } | 399 } |
399 | 400 |
400 ResourceId mask_resource_id = 0; | 401 ResourceId mask_resource_id = 0; |
401 gfx::Size mask_texture_size; | 402 gfx::Size mask_texture_size; |
402 gfx::RectF mask_uv_rect; | 403 gfx::RectF mask_uv_rect; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 NOTIMPLEMENTED(); | 541 NOTIMPLEMENTED(); |
541 break; | 542 break; |
542 default: | 543 default: |
543 NOTREACHED(); | 544 NOTREACHED(); |
544 break; | 545 break; |
545 } | 546 } |
546 } | 547 } |
547 } | 548 } |
548 | 549 |
549 } // namespace cc | 550 } // namespace cc |
OLD | NEW |