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

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

Issue 83883002: cc: Allow TEXTURE_RECTANGLE_ARB to be used for tile textures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review feedback Created 7 years, 1 month 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 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 GetResourceTarget() const OVERRIDE;
37 virtual ResourceFormat GetResourceFormat() const OVERRIDE; 38 virtual ResourceFormat GetResourceFormat() const OVERRIDE;
38 virtual void OnRasterTasksFinished() OVERRIDE; 39 virtual void OnRasterTasksFinished() OVERRIDE;
39 virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE; 40 virtual void OnRasterTasksRequiredForActivationFinished() OVERRIDE;
40 41
41 private: 42 private:
42 PixelBufferRasterWorkerPool(ResourceProvider* resource_provider, 43 PixelBufferRasterWorkerPool(ResourceProvider* resource_provider,
43 size_t num_threads, 44 size_t num_threads,
44 size_t max_transfer_buffer_usage_bytes); 45 size_t max_transfer_buffer_usage_bytes);
45 46
46 void FlushUploads(); 47 void FlushUploads();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 bool should_notify_client_if_no_tasks_are_pending_; 83 bool should_notify_client_if_no_tasks_are_pending_;
83 bool should_notify_client_if_no_tasks_required_for_activation_are_pending_; 84 bool should_notify_client_if_no_tasks_required_for_activation_are_pending_;
84 ResourceFormat format_; 85 ResourceFormat format_;
85 86
86 DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool); 87 DISALLOW_COPY_AND_ASSIGN(PixelBufferRasterWorkerPool);
87 }; 88 };
88 89
89 } // namespace cc 90 } // namespace cc
90 91
91 #endif // CC_RESOURCES_PIXEL_BUFFER_RASTER_WORKER_POOL_H_ 92 #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