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

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

Issue 2646623002: cc: Remove all blimp code from cc. (Closed)
Patch Set: test build Created 3 years, 11 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/float_clip_display_item.cc ('k') | cc/playback/recording_source_unittest.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 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/recording_source.h" 5 #include "cc/playback/recording_source.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "base/numerics/safe_math.h" 11 #include "base/numerics/safe_math.h"
12 #include "cc/base/region.h" 12 #include "cc/base/region.h"
13 #include "cc/layers/content_layer_client.h" 13 #include "cc/layers/content_layer_client.h"
14 #include "cc/playback/display_item_list.h" 14 #include "cc/playback/display_item_list.h"
15 #include "cc/playback/raster_source.h" 15 #include "cc/playback/raster_source.h"
16 #include "cc/proto/gfx_conversions.h"
17 #include "skia/ext/analysis_canvas.h" 16 #include "skia/ext/analysis_canvas.h"
18 17
19 namespace { 18 namespace {
20 19
21 #ifdef NDEBUG 20 #ifdef NDEBUG
22 const bool kDefaultClearCanvasSetting = false; 21 const bool kDefaultClearCanvasSetting = false;
23 #else 22 #else
24 const bool kDefaultClearCanvasSetting = true; 23 const bool kDefaultClearCanvasSetting = true;
25 #endif 24 #endif
26 25
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 154
156 TRACE_EVENT1("cc", "RecordingSource::DetermineIfSolidColor", "opcount", 155 TRACE_EVENT1("cc", "RecordingSource::DetermineIfSolidColor", "opcount",
157 display_list_->ApproximateOpCount()); 156 display_list_->ApproximateOpCount());
158 gfx::Size layer_size = GetSize(); 157 gfx::Size layer_size = GetSize();
159 skia::AnalysisCanvas canvas(layer_size.width(), layer_size.height()); 158 skia::AnalysisCanvas canvas(layer_size.width(), layer_size.height());
160 display_list_->Raster(&canvas, nullptr, gfx::Rect(layer_size), 1.f); 159 display_list_->Raster(&canvas, nullptr, gfx::Rect(layer_size), 1.f);
161 is_solid_color_ = canvas.GetColorIfSolid(&solid_color_); 160 is_solid_color_ = canvas.GetColorIfSolid(&solid_color_);
162 } 161 }
163 162
164 } // namespace cc 163 } // namespace cc
OLDNEW
« no previous file with comments | « cc/playback/float_clip_display_item.cc ('k') | cc/playback/recording_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698