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

Side by Side Diff: cc/raster/one_copy_tile_task_worker_pool.h

Issue 1866043006: cc: Remove ScheduleOnOriginThread() and CompleteOnOriginThread(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_ 5 #ifndef CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_
6 #define CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_ 6 #define CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 22 matching lines...) Expand all
33 bool use_partial_raster, 33 bool use_partial_raster,
34 int max_staging_buffer_usage_in_bytes, 34 int max_staging_buffer_usage_in_bytes,
35 ResourceFormat preferred_tile_format); 35 ResourceFormat preferred_tile_format);
36 36
37 // Overridden from TileTaskWorkerPool: 37 // Overridden from TileTaskWorkerPool:
38 TileTaskRunner* AsTileTaskRunner() override; 38 TileTaskRunner* AsTileTaskRunner() override;
39 39
40 // Overridden from TileTaskRunner: 40 // Overridden from TileTaskRunner:
41 void Shutdown() override; 41 void Shutdown() override;
42 void ScheduleTasks(TaskGraph* graph) override; 42 void ScheduleTasks(TaskGraph* graph) override;
43 void CheckForCompletedTasks() override; 43 void CollectCompletedTasks(Task::Vector* completed_tasks) override;
44 ResourceFormat GetResourceFormat(bool must_support_alpha) const override; 44 ResourceFormat GetResourceFormat(bool must_support_alpha) const override;
45 bool GetResourceRequiresSwizzle(bool must_support_alpha) const override; 45 bool GetResourceRequiresSwizzle(bool must_support_alpha) const override;
46 TileTaskClient* AsTileTaskClient() override;
46 47
47 // Overridden from TileTaskClient: 48 // Overridden from TileTaskClient:
48 std::unique_ptr<RasterBuffer> AcquireBufferForRaster( 49 std::unique_ptr<RasterBuffer> AcquireBufferForRaster(
49 const Resource* resource, 50 const Resource* resource,
50 uint64_t resource_content_id, 51 uint64_t resource_content_id,
51 uint64_t previous_content_id) override; 52 uint64_t previous_content_id) override;
52 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override; 53 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override;
53 54
54 // Playback raster source and copy result into |resource|. 55 // Playback raster source and copy result into |resource|.
55 void PlaybackAndCopyOnWorkerThread( 56 void PlaybackAndCopyOnWorkerThread(
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 std::unique_ptr<StagingBufferPool> staging_pool_; 104 std::unique_ptr<StagingBufferPool> staging_pool_;
104 105
105 Task::Vector completed_tasks_; 106 Task::Vector completed_tasks_;
106 107
107 DISALLOW_COPY_AND_ASSIGN(OneCopyTileTaskWorkerPool); 108 DISALLOW_COPY_AND_ASSIGN(OneCopyTileTaskWorkerPool);
108 }; 109 };
109 110
110 } // namespace cc 111 } // namespace cc
111 112
112 #endif // CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_ 113 #endif // CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698