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

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

Issue 2881213002: cc: Remove deprecated DisplayItemList::Raster overload. (Closed)
Patch Set: update Created 3 years, 7 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/paint/display_item_list.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/recording_source.h" 5 #include "cc/layers/recording_source.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 is_solid_color_ = false; 142 is_solid_color_ = false;
143 solid_color_ = SK_ColorTRANSPARENT; 143 solid_color_ = SK_ColorTRANSPARENT;
144 144
145 if (!display_list_->ShouldBeAnalyzedForSolidColor()) 145 if (!display_list_->ShouldBeAnalyzedForSolidColor())
146 return; 146 return;
147 147
148 TRACE_EVENT1("cc", "RecordingSource::DetermineIfSolidColor", "opcount", 148 TRACE_EVENT1("cc", "RecordingSource::DetermineIfSolidColor", "opcount",
149 display_list_->ApproximateOpCount()); 149 display_list_->ApproximateOpCount());
150 gfx::Size layer_size = GetSize(); 150 gfx::Size layer_size = GetSize();
151 skia::AnalysisCanvas canvas(layer_size.width(), layer_size.height()); 151 skia::AnalysisCanvas canvas(layer_size.width(), layer_size.height());
152 display_list_->Raster(&canvas, nullptr, gfx::Rect(layer_size), 1.f); 152 display_list_->Raster(&canvas);
153 is_solid_color_ = canvas.GetColorIfSolid(&solid_color_); 153 is_solid_color_ = canvas.GetColorIfSolid(&solid_color_);
154 } 154 }
155 155
156 } // namespace cc 156 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/paint/display_item_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698