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

Side by Side Diff: cc/test/test_tile_task_runner.cc

Issue 2018353005: cc: Fix data race in cc::TaskState::IsFinished. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 years, 6 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/test/fake_tile_task_manager.cc ('k') | cc/tiles/tile_manager.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/test/test_tile_task_runner.h" 5 #include "cc/test/test_tile_task_runner.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
(...skipping 17 matching lines...) Expand all
28 DCHECK(task); 28 DCHECK(task);
29 task->state().DidStart(); 29 task->state().DidStart();
30 task->RunOnWorkerThread(); 30 task->RunOnWorkerThread();
31 task->state().DidFinish(); 31 task->state().DidFinish();
32 } 32 }
33 33
34 void TestTileTaskRunner::CompleteTask(TileTask* task) { 34 void TestTileTaskRunner::CompleteTask(TileTask* task) {
35 DCHECK(task); 35 DCHECK(task);
36 DCHECK(task->state().IsFinished() || task->state().IsCanceled()); 36 DCHECK(task->state().IsFinished() || task->state().IsCanceled());
37 task->OnTaskCompleted(); 37 task->OnTaskCompleted();
38 task->DidComplete();
38 } 39 }
39 40
40 } // namespace cc 41 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_tile_task_manager.cc ('k') | cc/tiles/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698