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

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

Issue 228173002: cc: Separate RasterWorkerPool interface from implementation details. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Name interface Rasterizer instead and keep RasterWorkerPool name for the implementation Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_RESOURCES_RASTERIZER_DELEGATE_H_
6 #define CC_RESOURCES_RASTERIZER_DELEGATE_H_
7
8 #include <vector>
9
10 #include "cc/resources/rasterizer.h"
11
12 namespace cc {
13
14 class RasterizerDelegate : public RasterizerClient {
vmpstr 2014/04/10 18:21:18 Does this implement all the functions for it to qu
reveman 2014/04/10 19:38:15 Not yet. It sort of does after https://codereview.
vmpstr 2014/04/10 19:40:53 Ah good point.
15 public:
16 virtual ~RasterizerDelegate();
17
18 static scoped_ptr<RasterizerDelegate> Create(RasterizerClient* client,
19 Rasterizer** rasterizers,
20 size_t num_rasterizers);
21
22 void SetClient(RasterizerClient* client);
23 void Shutdown();
24 void ScheduleTasks(RasterTaskQueue* raster_queue);
25 void CheckForCompletedTasks();
26
27 // Overriden from RasterizerClient:
28 virtual bool ShouldForceTasksRequiredForActivationToComplete() const OVERRIDE;
29 virtual void DidFinishRunningTasks() OVERRIDE;
30 virtual void DidFinishRunningTasksRequiredForActivation() OVERRIDE;
31
32 private:
33 RasterizerDelegate(RasterizerClient* client,
34 Rasterizer** rasterizers,
35 size_t num_rasterizers);
36
37 RasterizerClient* client_;
38 typedef std::vector<Rasterizer*> RasterizerVector;
39 RasterizerVector rasterizers_;
40 size_t did_finish_running_tasks_pending_count_;
41 size_t did_finish_running_tasks_required_for_activation_pending_count_;
42 };
43
44 } // namespace cc
45
46 #endif // CC_RESOURCES_RASTERIZER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698