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

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

Issue 514123002: Manual fixups in compositor code scoped_refptr operator T* removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 10
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 } 347 }
348 348
349 // static 349 // static
350 scoped_ptr<TileManager> TileManager::Create( 350 scoped_ptr<TileManager> TileManager::Create(
351 TileManagerClient* client, 351 TileManagerClient* client,
352 base::SequencedTaskRunner* task_runner, 352 base::SequencedTaskRunner* task_runner,
353 ResourcePool* resource_pool, 353 ResourcePool* resource_pool,
354 Rasterizer* rasterizer, 354 Rasterizer* rasterizer,
355 RenderingStatsInstrumentation* rendering_stats_instrumentation) { 355 RenderingStatsInstrumentation* rendering_stats_instrumentation) {
356 return make_scoped_ptr(new TileManager(client, 356 return make_scoped_ptr(new TileManager(client,
357 task_runner, 357 task_runner,
danakj 2014/08/28 17:23:55 see here
358 resource_pool, 358 resource_pool,
359 rasterizer, 359 rasterizer,
360 rendering_stats_instrumentation)); 360 rendering_stats_instrumentation));
361 } 361 }
362 362
363 TileManager::TileManager( 363 TileManager::TileManager(
364 TileManagerClient* client, 364 TileManagerClient* client,
365 base::SequencedTaskRunner* task_runner, 365 const scoped_refptr<base::SequencedTaskRunner>& task_runner,
366 ResourcePool* resource_pool, 366 ResourcePool* resource_pool,
367 Rasterizer* rasterizer, 367 Rasterizer* rasterizer,
368 RenderingStatsInstrumentation* rendering_stats_instrumentation) 368 RenderingStatsInstrumentation* rendering_stats_instrumentation)
369 : client_(client), 369 : client_(client),
370 task_runner_(task_runner), 370 task_runner_(task_runner),
371 resource_pool_(resource_pool), 371 resource_pool_(resource_pool),
372 rasterizer_(rasterizer), 372 rasterizer_(rasterizer),
373 prioritized_tiles_dirty_(false), 373 prioritized_tiles_dirty_(false),
374 all_tiles_that_need_to_be_rasterized_have_memory_(true), 374 all_tiles_that_need_to_be_rasterized_have_memory_(true),
375 all_tiles_required_for_activation_have_memory_(true), 375 all_tiles_required_for_activation_have_memory_(true),
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 TRACE_EVENT0("cc", "TileManager::CheckIfReadyToActivate"); 1168 TRACE_EVENT0("cc", "TileManager::CheckIfReadyToActivate");
1169 1169
1170 rasterizer_->CheckForCompletedTasks(); 1170 rasterizer_->CheckForCompletedTasks();
1171 did_check_for_completed_tasks_since_last_schedule_tasks_ = true; 1171 did_check_for_completed_tasks_since_last_schedule_tasks_ = true;
1172 1172
1173 if (IsReadyToActivate()) 1173 if (IsReadyToActivate())
1174 client_->NotifyReadyToActivate(); 1174 client_->NotifyReadyToActivate();
1175 } 1175 }
1176 1176
1177 } // namespace cc 1177 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698