OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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 CanvasSurfaceLayerBridgeClient_h | |
6 #define CanvasSurfaceLayerBridgeClient_h | |
7 | |
8 #include "cc/surfaces/surface_id.h" | |
9 #include "cc/surfaces/surface_sequence.h" | |
10 #include "platform/PlatformExport.h" | |
11 | |
12 namespace blink { | |
13 | |
14 // This class is an interface for all mojo calls from CanvasSurfaceLayerBridge | |
15 // to OffscreenCanvasSurfaceService. | |
16 class PLATFORM_EXPORT CanvasSurfaceLayerBridgeClient { | |
dcheng
2016/09/15 20:45:11
Apparently this class just exists as a layer of in
xlai (Olivia)
2016/09/15 22:53:10
This class was added since Patch Set 7 and it was
danakj
2016/09/15 23:48:47
I think what Daniel is getting at is that we shoul
dcheng
2016/09/18 17:24:42
I have a CL for this (https://codereview.chromium.
| |
17 public: | |
18 virtual ~CanvasSurfaceLayerBridgeClient() {}; | |
19 | |
20 // Calls that help initial creation of SurfaceLayer. | |
21 virtual bool syncGetSurfaceId(cc::SurfaceId*) = 0; | |
22 virtual void asyncRequestSurfaceCreation(const cc::SurfaceId&) = 0; | |
23 | |
24 // Calls that ensure correct destruction order of surface. | |
25 virtual void asyncRequire(cc::SurfaceId, cc::SurfaceSequence) = 0; | |
26 virtual void asyncSatisfy(cc::SurfaceSequence) = 0; | |
27 }; | |
28 | |
29 } // namespace blink | |
30 | |
31 #endif // CanvasSurfaceLayerBridgeClient_h | |
OLD | NEW |