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

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

Issue 519583003: Use the solid color detection to create solid layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Passed the right color to the quad Created 6 years, 3 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') | cc/layers/picture_layer.h » ('J')
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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 const gfx::Size& content_bounds, 560 const gfx::Size& content_bounds,
561 const SharedQuadState* shared_quad_state, 561 const SharedQuadState* shared_quad_state,
562 AppendQuadsData* append_quads_data) const; 562 AppendQuadsData* append_quads_data) const;
563 void AppendDebugBorderQuad(RenderPass* render_pass, 563 void AppendDebugBorderQuad(RenderPass* render_pass,
564 const gfx::Size& content_bounds, 564 const gfx::Size& content_bounds,
565 const SharedQuadState* shared_quad_state, 565 const SharedQuadState* shared_quad_state,
566 AppendQuadsData* append_quads_data, 566 AppendQuadsData* append_quads_data,
567 SkColor color, 567 SkColor color,
568 float width) const; 568 float width) const;
569 569
570 void AppendSolidQuads(RenderPass* render_pass,
571 const OcclusionTracker<LayerImpl>& occlusion_tracker,
572 AppendQuadsData* append_quads_data,
573 SkColor color);
574
570 void NoteLayerPropertyChanged(); 575 void NoteLayerPropertyChanged();
571 void NoteLayerPropertyChangedForSubtree(); 576 void NoteLayerPropertyChangedForSubtree();
572 577
573 // Note carefully this does not affect the current layer. 578 // Note carefully this does not affect the current layer.
574 void NoteLayerPropertyChangedForDescendants(); 579 void NoteLayerPropertyChangedForDescendants();
575 580
576 private: 581 private:
577 void NoteLayerPropertyChangedForDescendantsInternal(); 582 void NoteLayerPropertyChangedForDescendantsInternal();
578 583
579 virtual const char* LayerTypeAsString() const; 584 virtual const char* LayerTypeAsString() const;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 DrawProperties<LayerImpl> draw_properties_; 709 DrawProperties<LayerImpl> draw_properties_;
705 710
706 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 711 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
707 712
708 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 713 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
709 }; 714 };
710 715
711 } // namespace cc 716 } // namespace cc
712 717
713 #endif // CC_LAYERS_LAYER_IMPL_H_ 718 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | cc/layers/picture_layer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698