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

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

Issue 21159007: cc: Adding support for RGBA_4444 tile textures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed a signed vs. unsigned comparison in video_resource_updater.cc Created 7 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 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 16 matching lines...) Expand all
27 num_threads, 27 num_threads,
28 max_transfer_buffer_usage_bytes)); 28 max_transfer_buffer_usage_bytes));
29 } 29 }
30 30
31 // Overridden from WorkerPool: 31 // Overridden from WorkerPool:
32 virtual void Shutdown() OVERRIDE; 32 virtual void Shutdown() OVERRIDE;
33 virtual void CheckForCompletedTasks() OVERRIDE; 33 virtual void CheckForCompletedTasks() OVERRIDE;
34 34
35 // Overridden from RasterWorkerPool: 35 // Overridden from RasterWorkerPool:
36 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE; 36 virtual void ScheduleTasks(RasterTask::Queue* queue) OVERRIDE;
37 virtual GLenum GetResourceFormat() const OVERRIDE; 37 virtual ResourceFormat GetResourceFormat() const OVERRIDE;
38 virtual void OnRasterTasksFinished() OVERRIDE; 38 virtual void OnRasterTasksFinished() OVERRIDE;
39 virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE; 39 virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE;
40 40
41 private: 41 private:
42 PixelBufferRasterWorkerPool(ResourceProvider* resource_provider, 42 PixelBufferRasterWorkerPool(ResourceProvider* resource_provider,
43 size_t num_threads, 43 size_t num_threads,
44 size_t max_transfer_buffer_usage_bytes); 44 size_t max_transfer_buffer_usage_bytes);
45 45
46 void FlushUploads(); 46 void FlushUploads();
47 void CheckForCompletedUploads(); 47 void CheckForCompletedUploads();
(...skipping 26 matching lines...) Expand all
74 74
75 size_t scheduled_raster_task_count_; 75 size_t scheduled_raster_task_count_;
76 size_t bytes_pending_upload_; 76 size_t bytes_pending_upload_;
77 size_t max_bytes_pending_upload_; 77 size_t max_bytes_pending_upload_;
78 bool has_performed_uploads_since_last_flush_; 78 bool has_performed_uploads_since_last_flush_;
79 base::CancelableClosure check_for_completed_raster_tasks_callback_; 79 base::CancelableClosure check_for_completed_raster_tasks_callback_;
80 bool check_for_completed_raster_tasks_pending_; 80 bool check_for_completed_raster_tasks_pending_;
81 81
82 bool should_notify_client_if_no_tasks_are_pending_; 82 bool should_notify_client_if_no_tasks_are_pending_;
83 bool should_notify_client_if_no_tasks_required_for_activation_are_pending_; 83 bool should_notify_client_if_no_tasks_required_for_activation_are_pending_;
84 ResourceFormat format_;
84 85
85 DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool); 86 DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool);
86 }; 87 };
87 88
88 } // namespace cc 89 } // namespace cc
89 90
90 #endif // CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ 91 #endif // CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling_set_unittest.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