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

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

Issue 832963002: Revert of cc: Remove tile and scale specific code from raster source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/resources/display_list_recording_source.h ('k') | cc/resources/picture_pile.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/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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 gfx::Size DisplayListRecordingSource::GetSize() const { 98 gfx::Size DisplayListRecordingSource::GetSize() const {
99 return size_; 99 return size_;
100 } 100 }
101 101
102 void DisplayListRecordingSource::SetEmptyBounds() { 102 void DisplayListRecordingSource::SetEmptyBounds() {
103 size_ = gfx::Size(); 103 size_ = gfx::Size();
104 Clear(); 104 Clear();
105 } 105 }
106 106
107 void DisplayListRecordingSource::SetMinContentsScale(float min_contents_scale) {
108 }
109
110 void DisplayListRecordingSource::SetTileGridSize(
111 const gfx::Size& tile_grid_size) {
112 }
113
107 void DisplayListRecordingSource::SetSlowdownRasterScaleFactor(int factor) { 114 void DisplayListRecordingSource::SetSlowdownRasterScaleFactor(int factor) {
108 slow_down_raster_scale_factor_for_debug_ = factor; 115 slow_down_raster_scale_factor_for_debug_ = factor;
109 } 116 }
110 117
111 void DisplayListRecordingSource::SetUnsuitableForGpuRasterizationForTesting() { 118 void DisplayListRecordingSource::SetUnsuitableForGpuRasterizationForTesting() {
112 is_suitable_for_gpu_rasterization_ = false; 119 is_suitable_for_gpu_rasterization_ = false;
113 } 120 }
114 121
115 bool DisplayListRecordingSource::IsSuitableForGpuRasterization() const { 122 bool DisplayListRecordingSource::IsSuitableForGpuRasterization() const {
116 return is_suitable_for_gpu_rasterization_; 123 return is_suitable_for_gpu_rasterization_;
(...skipping 24 matching lines...) Expand all
141 is_solid_color_ = canvas.GetColorIfSolid(&solid_color_); 148 is_solid_color_ = canvas.GetColorIfSolid(&solid_color_);
142 } 149 }
143 150
144 void DisplayListRecordingSource::Clear() { 151 void DisplayListRecordingSource::Clear() {
145 recorded_viewport_ = gfx::Rect(); 152 recorded_viewport_ = gfx::Rect();
146 display_list_ = NULL; 153 display_list_ = NULL;
147 is_solid_color_ = false; 154 is_solid_color_ = false;
148 } 155 }
149 156
150 } // namespace cc 157 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/display_list_recording_source.h ('k') | cc/resources/picture_pile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698