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

Side by Side Diff: content/renderer/render_thread_impl_browsertest.cc

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: rebase & remove inline keyword Created 3 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 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 "content/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 93
94 bool PostNonNestableDelayedTask(const tracked_objects::Location&, 94 bool PostNonNestableDelayedTask(const tracked_objects::Location&,
95 base::OnceClosure, 95 base::OnceClosure,
96 base::TimeDelta) override { 96 base::TimeDelta) override {
97 base::AutoLock auto_lock(lock_); 97 base::AutoLock auto_lock(lock_);
98 count_++; 98 count_++;
99 return true; 99 return true;
100 } 100 }
101 101
102 bool RunsTasksOnCurrentThread() const override { return true; } 102 bool RunsTasksInCurrentSequence() const override { return true; }
103 103
104 int NumTasksPosted() const { 104 int NumTasksPosted() const {
105 base::AutoLock auto_lock(lock_); 105 base::AutoLock auto_lock(lock_);
106 return count_; 106 return count_;
107 } 107 }
108 108
109 private: 109 private:
110 ~TestTaskCounter() override {} 110 ~TestTaskCounter() override {}
111 111
112 mutable base::Lock lock_; 112 mutable base::Lock lock_;
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 // These formats are guaranteed to work on all platforms. 396 // These formats are guaranteed to work on all platforms.
397 ::testing::Values(gfx::BufferFormat::R_8, 397 ::testing::Values(gfx::BufferFormat::R_8,
398 gfx::BufferFormat::BGR_565, 398 gfx::BufferFormat::BGR_565,
399 gfx::BufferFormat::RGBA_4444, 399 gfx::BufferFormat::RGBA_4444,
400 gfx::BufferFormat::RGBA_8888, 400 gfx::BufferFormat::RGBA_8888,
401 gfx::BufferFormat::BGRA_8888, 401 gfx::BufferFormat::BGRA_8888,
402 gfx::BufferFormat::YVU_420))); 402 gfx::BufferFormat::YVU_420)));
403 403
404 } // namespace 404 } // namespace
405 } // namespace content 405 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/categorized_worker_pool.cc ('k') | content/test/test_blink_web_unit_test_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698