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

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

Issue 14409006: cc: Changes to use GL API for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Incorporate code reviews Created 7 years, 7 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/tile_manager.h" 5 #include "cc/resources/tile_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 "<unknown TileManagerBinPriority value>")); 104 "<unknown TileManagerBinPriority value>"));
105 } 105 }
106 } 106 }
107 107
108 TileManager::TileManager( 108 TileManager::TileManager(
109 TileManagerClient* client, 109 TileManagerClient* client,
110 ResourceProvider* resource_provider, 110 ResourceProvider* resource_provider,
111 size_t num_raster_threads, 111 size_t num_raster_threads,
112 bool use_color_estimator, 112 bool use_color_estimator,
113 bool prediction_benchmarking, 113 bool prediction_benchmarking,
114 RenderingStatsInstrumentation* rendering_stats_instrumentation) 114 RenderingStatsInstrumentation* rendering_stats_instrumentation,
115 bool use_gpu_memory_buffers)
115 : client_(client), 116 : client_(client),
116 resource_pool_(ResourcePool::Create(resource_provider)), 117 resource_pool_(ResourcePool::Create(resource_provider)),
117 raster_worker_pool_(RasterWorkerPool::Create(this, num_raster_threads)), 118 raster_worker_pool_(RasterWorkerPool::Create(this, num_raster_threads)),
118 manage_tiles_pending_(false), 119 manage_tiles_pending_(false),
119 manage_tiles_call_count_(0), 120 manage_tiles_call_count_(0),
120 bytes_pending_upload_(0), 121 bytes_pending_upload_(0),
121 has_performed_uploads_since_last_flush_(false), 122 has_performed_uploads_since_last_flush_(false),
122 ever_exceeded_memory_budget_(false), 123 ever_exceeded_memory_budget_(false),
123 rendering_stats_instrumentation_(rendering_stats_instrumentation), 124 rendering_stats_instrumentation_(rendering_stats_instrumentation),
124 use_color_estimator_(use_color_estimator), 125 use_color_estimator_(use_color_estimator),
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 is_predicted_solid && predicted_color != actual_color); 978 is_predicted_solid && predicted_color != actual_color);
978 HISTOGRAM_BOOLEAN("Renderer4.ColorPredictor.Accuracy", 979 HISTOGRAM_BOOLEAN("Renderer4.ColorPredictor.Accuracy",
979 is_predicted_solid == is_actually_solid && 980 is_predicted_solid == is_actually_solid &&
980 (!is_predicted_solid || predicted_color == actual_color)); 981 (!is_predicted_solid || predicted_color == actual_color));
981 HISTOGRAM_BOOLEAN("Renderer4.ColorPredictor.IsCorrectSolid", 982 HISTOGRAM_BOOLEAN("Renderer4.ColorPredictor.IsCorrectSolid",
982 is_predicted_solid == is_actually_solid && 983 is_predicted_solid == is_actually_solid &&
983 (is_predicted_solid && predicted_color == actual_color)); 984 (is_predicted_solid && predicted_color == actual_color));
984 } 985 }
985 986
986 } // namespace cc 987 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698