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

Side by Side Diff: cc/playback/display_list_recording_source.cc

Issue 1835843002: WIP: Fix foreignObject cullrect Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/playback/display_list_raster_source.cc ('k') | cc/playback/drawing_display_item.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/playback/display_list_recording_source.h" 5 #include "cc/playback/display_list_recording_source.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 void DisplayListRecordingSource::DetermineIfSolidColor() { 242 void DisplayListRecordingSource::DetermineIfSolidColor() {
243 DCHECK(display_list_); 243 DCHECK(display_list_);
244 is_solid_color_ = false; 244 is_solid_color_ = false;
245 solid_color_ = SK_ColorTRANSPARENT; 245 solid_color_ = SK_ColorTRANSPARENT;
246 246
247 if (!display_list_->ShouldBeAnalyzedForSolidColor()) 247 if (!display_list_->ShouldBeAnalyzedForSolidColor())
248 return; 248 return;
249 249
250 gfx::Size layer_size = GetSize(); 250 gfx::Size layer_size = GetSize();
251 skia::AnalysisCanvas canvas(layer_size.width(), layer_size.height()); 251 skia::AnalysisCanvas canvas(layer_size.width(), layer_size.height());
252 display_list_->Raster(&canvas, nullptr, gfx::Rect(), 1.f); 252 display_list_->Raster(&canvas, nullptr, gfx::Rect(layer_size), 1.f);
253 is_solid_color_ = canvas.GetColorIfSolid(&solid_color_); 253 is_solid_color_ = canvas.GetColorIfSolid(&solid_color_);
254 } 254 }
255 255
256 void DisplayListRecordingSource::Clear() { 256 void DisplayListRecordingSource::Clear() {
257 recorded_viewport_ = gfx::Rect(); 257 recorded_viewport_ = gfx::Rect();
258 display_list_ = nullptr; 258 display_list_ = nullptr;
259 painter_reported_memory_usage_ = 0; 259 painter_reported_memory_usage_ = 0;
260 is_solid_color_ = false; 260 is_solid_color_ = false;
261 } 261 }
262 262
263 } // namespace cc 263 } // namespace cc
OLDNEW
« no previous file with comments | « cc/playback/display_list_raster_source.cc ('k') | cc/playback/drawing_display_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698