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

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

Issue 1739993004: content: Implement dynamic priorities for raster threads. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: preparing for checkin. Created 4 years, 9 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_TILE_TASK_RUNNER_H_ 5 #ifndef CC_RASTER_TILE_TASK_RUNNER_H_
6 #define CC_RASTER_TILE_TASK_RUNNER_H_ 6 #define CC_RASTER_TILE_TASK_RUNNER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 16 matching lines...) Expand all
27 uint64_t previous_content_id) = 0; 27 uint64_t previous_content_id) = 0;
28 virtual void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) = 0; 28 virtual void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) = 0;
29 29
30 protected: 30 protected:
31 virtual ~TileTaskClient() {} 31 virtual ~TileTaskClient() {}
32 }; 32 };
33 33
34 class CC_EXPORT TileTask : public Task { 34 class CC_EXPORT TileTask : public Task {
35 public: 35 public:
36 typedef std::vector<scoped_refptr<TileTask>> Vector; 36 typedef std::vector<scoped_refptr<TileTask>> Vector;
37
38 virtual void ScheduleOnOriginThread(TileTaskClient* client) = 0; 37 virtual void ScheduleOnOriginThread(TileTaskClient* client) = 0;
39 virtual void CompleteOnOriginThread(TileTaskClient* client) = 0; 38 virtual void CompleteOnOriginThread(TileTaskClient* client) = 0;
40 39
41 void WillSchedule(); 40 void WillSchedule();
42 void DidSchedule(); 41 void DidSchedule();
43 bool HasBeenScheduled() const; 42 bool HasBeenScheduled() const;
44 43
45 void WillComplete(); 44 void WillComplete();
46 void DidComplete(); 45 void DidComplete();
47 bool HasCompleted() const; 46 bool HasCompleted() const;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Determine if the resource requires swizzling. 102 // Determine if the resource requires swizzling.
104 virtual bool GetResourceRequiresSwizzle(bool must_support_alpha) const = 0; 103 virtual bool GetResourceRequiresSwizzle(bool must_support_alpha) const = 0;
105 104
106 protected: 105 protected:
107 virtual ~TileTaskRunner() {} 106 virtual ~TileTaskRunner() {}
108 }; 107 };
109 108
110 } // namespace cc 109 } // namespace cc
111 110
112 #endif // CC_RASTER_TILE_TASK_RUNNER_H_ 111 #endif // CC_RASTER_TILE_TASK_RUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698