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

Side by Side Diff: cc/surfaces/surface_factory_client.h

Issue 2802023002: Remove SurfaceFactory And SurfaceFactoryClient (Closed)
Patch Set: Rebase Created 3 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
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_SURFACES_SURFACE_FACTORY_CLIENT_H_
6 #define CC_SURFACES_SURFACE_FACTORY_CLIENT_H_
7
8 #include "cc/resources/returned_resource.h"
9 #include "cc/surfaces/local_surface_id.h"
10 #include "cc/surfaces/surfaces_export.h"
11 #include "ui/gfx/geometry/rect.h"
12
13 namespace cc {
14
15 class BeginFrameSource;
16 class SurfaceId;
17
18 class CC_SURFACES_EXPORT SurfaceFactoryClient {
19 public:
20 virtual ~SurfaceFactoryClient() {}
21
22 virtual void ReferencedSurfacesChanged(
23 const LocalSurfaceId& local_surface_id,
24 const std::vector<SurfaceId>* active_referenced_surfaces,
25 const std::vector<SurfaceId>* pending_referenced_surfaces) {}
26
27 virtual void ReturnResources(const ReturnedResourceArray& resources) = 0;
28
29 virtual void WillDrawSurface(const LocalSurfaceId& local_surface_id,
30 const gfx::Rect& damage_rect) {}
31
32 // This allows the SurfaceFactory to pass a BeginFrameSource to use.
33 virtual void SetBeginFrameSource(BeginFrameSource* begin_frame_source) = 0;
34 };
35
36 } // namespace cc
37
38 #endif // CC_SURFACES_SURFACE_FACTORY_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698