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

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

Issue 2795703002: ui: Add debug flag to show composited layer borders in ChromeOS UI. (Closed)
Patch Set: nits Created 3 years, 8 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/picture_layer_impl.cc ('k') | cc/layers/surface_layer_impl.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 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
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
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
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | cc/layers/surface_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698