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

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

Issue 811953005: 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
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
114 void DisplayListRecordingSource::SetSlowdownRasterScaleFactor(int factor) { 107 void DisplayListRecordingSource::SetSlowdownRasterScaleFactor(int factor) {
115 slow_down_raster_scale_factor_for_debug_ = factor; 108 slow_down_raster_scale_factor_for_debug_ = factor;
116 } 109 }
117 110
118 void DisplayListRecordingSource::SetUnsuitableForGpuRasterizationForTesting() { 111 void DisplayListRecordingSource::SetUnsuitableForGpuRasterizationForTesting() {
119 is_suitable_for_gpu_rasterization_ = false; 112 is_suitable_for_gpu_rasterization_ = false;
120 } 113 }
121 114
122 bool DisplayListRecordingSource::IsSuitableForGpuRasterization() const { 115 bool DisplayListRecordingSource::IsSuitableForGpuRasterization() const {
123 return is_suitable_for_gpu_rasterization_; 116 return is_suitable_for_gpu_rasterization_;
(...skipping 24 matching lines...) Expand all
148 is_solid_color_ = canvas.GetColorIfSolid(&solid_color_); 141 is_solid_color_ = canvas.GetColorIfSolid(&solid_color_);
149 } 142 }
150 143
151 void DisplayListRecordingSource::Clear() { 144 void DisplayListRecordingSource::Clear() {
152 recorded_viewport_ = gfx::Rect(); 145 recorded_viewport_ = gfx::Rect();
153 display_list_ = NULL; 146 display_list_ = NULL;
154 is_solid_color_ = false; 147 is_solid_color_ = false;
155 } 148 }
156 149
157 } // namespace cc 150 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698