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

Side by Side Diff: cc/layers/layer_impl.h

Issue 341023003: cc: Pass scaled bounds to debug border quads for drawing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 | « no previous file | cc/layers/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 #ifndef CC_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 531
532 bool IsDrawnRenderSurfaceLayerListMember() const; 532 bool IsDrawnRenderSurfaceLayerListMember() const;
533 533
534 protected: 534 protected:
535 LayerImpl(LayerTreeImpl* layer_impl, int id); 535 LayerImpl(LayerTreeImpl* layer_impl, int id);
536 536
537 // Get the color and size of the layer's debug border. 537 // Get the color and size of the layer's debug border.
538 virtual void GetDebugBorderProperties(SkColor* color, float* width) const; 538 virtual void GetDebugBorderProperties(SkColor* color, float* width) const;
539 539
540 void AppendDebugBorderQuad(QuadSink* quad_sink, 540 void AppendDebugBorderQuad(QuadSink* quad_sink,
541 const SharedQuadState* shared_quad_state, 541 const SharedQuadState* shared_quad_state,
danakj 2014/06/19 16:01:14 Remove this version of the method, ie have the lay
sohanjg 2014/06/20 07:28:30 Done.
542 AppendQuadsData* append_quads_data) const; 542 AppendQuadsData* append_quads_data) const;
543 void AppendDebugBorderQuad(QuadSink* quad_sink, 543 void AppendDebugBorderQuad(QuadSink* quad_sink,
544 const gfx::Size& content_bounds,
545 const SharedQuadState* shared_quad_state,
546 AppendQuadsData* append_quads_data) const;
547 void AppendDebugBorderQuad(QuadSink* quad_sink,
548 const gfx::Size& content_bounds,
544 const SharedQuadState* shared_quad_state, 549 const SharedQuadState* shared_quad_state,
545 AppendQuadsData* append_quads_data, 550 AppendQuadsData* append_quads_data,
546 SkColor color, 551 SkColor color,
547 float width) const; 552 float width) const;
548 553
549 virtual void AsValueInto(base::DictionaryValue* dict) const; 554 virtual void AsValueInto(base::DictionaryValue* dict) const;
550 555
551 void NoteLayerPropertyChanged(); 556 void NoteLayerPropertyChanged();
552 void NoteLayerPropertyChangedForSubtree(); 557 void NoteLayerPropertyChangedForSubtree();
553 558
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 DrawProperties<LayerImpl> draw_properties_; 684 DrawProperties<LayerImpl> draw_properties_;
680 685
681 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 686 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
682 687
683 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 688 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
684 }; 689 };
685 690
686 } // namespace cc 691 } // namespace cc
687 692
688 #endif // CC_LAYERS_LAYER_IMPL_H_ 693 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698