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

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

Issue 145313006: [#7] Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 10 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/prioritized_resource_manager.cc ('k') | cc/resources/resource.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/raster_worker_pool.h" 5 #include "cc/resources/raster_worker_pool.h"
6 6
7 #include "base/debug/trace_event_synthetic_delay.h" 7 #include "base/debug/trace_event_synthetic_delay.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Record the solid color prediction. 116 // Record the solid color prediction.
117 UMA_HISTOGRAM_BOOLEAN("Renderer4.SolidColorTilesAnalyzed", 117 UMA_HISTOGRAM_BOOLEAN("Renderer4.SolidColorTilesAnalyzed",
118 analysis_.is_solid_color); 118 analysis_.is_solid_color);
119 119
120 // Clear the flag if we're not using the estimator. 120 // Clear the flag if we're not using the estimator.
121 analysis_.is_solid_color &= kUseColorEstimator; 121 analysis_.is_solid_color &= kUseColorEstimator;
122 } 122 }
123 123
124 void RunRasterOnThread(unsigned thread_index, 124 void RunRasterOnThread(unsigned thread_index,
125 void* buffer, 125 void* buffer,
126 gfx::Size size, 126 const gfx::Size& size,
127 int stride) { 127 int stride) {
128 TRACE_EVENT2( 128 TRACE_EVENT2(
129 "cc", 129 "cc",
130 "RasterWorkerPoolTaskImpl::RunRasterOnThread", 130 "RasterWorkerPoolTaskImpl::RunRasterOnThread",
131 "data", 131 "data",
132 TracedValue::FromValue(DataAsValue().release()), 132 TracedValue::FromValue(DataAsValue().release()),
133 "raster_mode", 133 "raster_mode",
134 TracedValue::FromValue(RasterModeAsValue(raster_mode_).release())); 134 TracedValue::FromValue(RasterModeAsValue(raster_mode_).release()));
135 135
136 devtools_instrumentation::ScopedLayerTask raster_task( 136 devtools_instrumentation::ScopedLayerTask raster_task(
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 761
762 internal::GraphNode* decode_node = 762 internal::GraphNode* decode_node =
763 CreateGraphNodeForTask(decode_task, priority, graph); 763 CreateGraphNodeForTask(decode_task, priority, graph);
764 decode_node->add_dependent(raster_node); 764 decode_node->add_dependent(raster_node);
765 } 765 }
766 766
767 return raster_node; 767 return raster_node;
768 } 768 }
769 769
770 } // namespace cc 770 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/prioritized_resource_manager.cc ('k') | cc/resources/resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698