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

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

Issue 997173003: Revert of Raster into an SkP before rendering a DisplayList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/resources/display_item_list.cc ('k') | no next file » | 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/resources/display_list_recording_source.h" 5 #include "cc/resources/display_list_recording_source.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "cc/base/region.h" 9 #include "cc/base/region.h"
10 #include "cc/layers/content_layer_client.h" 10 #include "cc/layers/content_layer_client.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 for (int i = 0; i < repeat_count; ++i) { 105 for (int i = 0; i < repeat_count; ++i) {
106 display_list_ = painter->PaintContentsToDisplayList(recorded_viewport_, 106 display_list_ = painter->PaintContentsToDisplayList(recorded_viewport_,
107 painting_control); 107 painting_control);
108 } 108 }
109 display_list_->set_layer_rect(recorded_viewport_); 109 display_list_->set_layer_rect(recorded_viewport_);
110 is_suitable_for_gpu_rasterization_ = 110 is_suitable_for_gpu_rasterization_ =
111 display_list_->IsSuitableForGpuRasterization(); 111 display_list_->IsSuitableForGpuRasterization();
112 112
113 DetermineIfSolidColor(); 113 DetermineIfSolidColor();
114 display_list_->EmitTraceSnapshot(); 114 display_list_->EmitTraceSnapshot();
115
116 display_list_->CreateAndCacheSkPicture();
117
118 return true; 115 return true;
119 } 116 }
120 117
121 void DisplayListRecordingSource::DidMoveToNewCompositor() { 118 void DisplayListRecordingSource::DidMoveToNewCompositor() {
122 // No invalidation history to worry about here. 119 // No invalidation history to worry about here.
123 } 120 }
124 121
125 gfx::Size DisplayListRecordingSource::GetSize() const { 122 gfx::Size DisplayListRecordingSource::GetSize() const {
126 return size_; 123 return size_;
127 } 124 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 is_solid_color_ = canvas.GetColorIfSolid(&solid_color_); 173 is_solid_color_ = canvas.GetColorIfSolid(&solid_color_);
177 } 174 }
178 175
179 void DisplayListRecordingSource::Clear() { 176 void DisplayListRecordingSource::Clear() {
180 recorded_viewport_ = gfx::Rect(); 177 recorded_viewport_ = gfx::Rect();
181 display_list_ = NULL; 178 display_list_ = NULL;
182 is_solid_color_ = false; 179 is_solid_color_ = false;
183 } 180 }
184 181
185 } // namespace cc 182 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/display_item_list.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698