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

Side by Side Diff: cc/resources/pixel_buffer_raster_worker_pool.h

Issue 20017005: gpu: Refactor GpuMemoryBuffer framework for multi-process support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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 | Annotate | Revision Log
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 #ifndef CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ 5 #ifndef CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_
6 #define CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ 6 #define CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 11 matching lines...) Expand all
22 return make_scoped_ptr<RasterWorkerPool>( 22 return make_scoped_ptr<RasterWorkerPool>(
23 new PixelBufferRasterWorkerPool(resource_provider, num_threads)); 23 new PixelBufferRasterWorkerPool(resource_provider, num_threads));
24 } 24 }
25 25
26 // Overridden from WorkerPool: 26 // Overridden from WorkerPool:
27 virtual void Shutdown() OVERRIDE; 27 virtual void Shutdown() OVERRIDE;
28 virtual void CheckForCompletedTasks() OVERRIDE; 28 virtual void CheckForCompletedTasks() OVERRIDE;
29 29
30 // Overridden from RasterWorkerPool: 30 // Overridden from RasterWorkerPool:
31 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE; 31 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE;
32 virtual GLenum GetResourceFormat() const OVERRIDE;
32 virtual void OnRasterTasksFinished() OVERRIDE; 33 virtual void OnRasterTasksFinished() OVERRIDE;
33 virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE; 34 virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE;
34 35
35 private: 36 private:
36 PixelBufferRasterWorkerPool(ResourceProvider* resource_provider, 37 PixelBufferRasterWorkerPool(ResourceProvider* resource_provider,
37 size_t num_threads); 38 size_t num_threads);
38 39
39 void FlushUploads(); 40 void FlushUploads();
40 void CheckForCompletedUploads(); 41 void CheckForCompletedUploads();
41 void ScheduleCheckForCompletedRasterTasks(); 42 void ScheduleCheckForCompletedRasterTasks();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 74
74 bool should_notify_client_if_no_tasks_are_pending_; 75 bool should_notify_client_if_no_tasks_are_pending_;
75 bool should_notify_client_if_no_tasks_required_for_activation_are_pending_; 76 bool should_notify_client_if_no_tasks_required_for_activation_are_pending_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool); 78 DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool);
78 }; 79 };
79 80
80 } // namespace cc 81 } // namespace cc
81 82
82 #endif // CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ 83 #endif // CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_
OLDNEW
« no previous file with comments | « cc/resources/image_raster_worker_pool.cc ('k') | cc/resources/pixel_buffer_raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698