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

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

Issue 2784683002: cc: remove the veto-to-software for complex content. (Closed)
Patch Set: Remove GpuRasterizationStatus::OFF_CONTENT entirely. 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/heads_up_display_layer_impl.h" 5 #include "cc/layers/heads_up_display_layer_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 color = SK_ColorRED; 600 color = SK_ColorRED;
601 break; 601 break;
602 case GpuRasterizationStatus::OFF_VIEWPORT: 602 case GpuRasterizationStatus::OFF_VIEWPORT:
603 status = "off (viewport)"; 603 status = "off (viewport)";
604 color = SK_ColorYELLOW; 604 color = SK_ColorYELLOW;
605 break; 605 break;
606 case GpuRasterizationStatus::MSAA_CONTENT: 606 case GpuRasterizationStatus::MSAA_CONTENT:
607 status = "MSAA (content)"; 607 status = "MSAA (content)";
608 color = SK_ColorCYAN; 608 color = SK_ColorCYAN;
609 break; 609 break;
610 case GpuRasterizationStatus::OFF_CONTENT:
611 status = "off (content)";
612 color = SK_ColorYELLOW;
613 break;
614 } 610 }
615 611
616 if (status.empty()) 612 if (status.empty())
617 return SkRect::MakeEmpty(); 613 return SkRect::MakeEmpty();
618 614
619 const int kPadding = 4; 615 const int kPadding = 4;
620 const int kTitleFontHeight = 13; 616 const int kTitleFontHeight = 13;
621 const int kFontHeight = 12; 617 const int kFontHeight = 12;
622 618
623 const int height = kTitleFontHeight + kFontHeight + 3 * kPadding; 619 const int height = kTitleFontHeight + kFontHeight + 3 * kPadding;
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 return "cc::HeadsUpDisplayLayerImpl"; 790 return "cc::HeadsUpDisplayLayerImpl";
795 } 791 }
796 792
797 void HeadsUpDisplayLayerImpl::AsValueInto( 793 void HeadsUpDisplayLayerImpl::AsValueInto(
798 base::trace_event::TracedValue* dict) const { 794 base::trace_event::TracedValue* dict) const {
799 LayerImpl::AsValueInto(dict); 795 LayerImpl::AsValueInto(dict);
800 dict->SetString("layer_name", "Heads Up Display Layer"); 796 dict->SetString("layer_name", "Heads Up Display Layer");
801 } 797 }
802 798
803 } // namespace cc 799 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl_unittest.cc » ('j') | cc/trees/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698