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 #include "platform/graphics/CanvasSurfaceLayerBridgeClientImpl.h" | |
6 | |
7 #include "public/platform/InterfaceProvider.h" | |
8 #include "public/platform/Platform.h" | |
9 | |
10 namespace blink { | |
11 | |
12 CanvasSurfaceLayerBridgeClientImpl::CanvasSurfaceLayerBridgeClientImpl() | |
13 { | |
14 DCHECK(!m_service.is_bound()); | |
15 Platform::current()->interfaceProvider()->getInterface(mojo::GetProxy(&m_ser
vice)); | |
16 } | |
17 | |
18 CanvasSurfaceLayerBridgeClientImpl::~CanvasSurfaceLayerBridgeClientImpl() | |
19 { | |
20 } | |
21 | |
22 bool CanvasSurfaceLayerBridgeClientImpl::syncGetSurfaceId(cc::SurfaceId* surface
IdPtr) | |
23 { | |
24 return m_service->GetSurfaceId(surfaceIdPtr); | |
25 } | |
26 | |
27 void CanvasSurfaceLayerBridgeClientImpl::asyncRequire(const cc::SurfaceId& surfa
ceId, const cc::SurfaceSequence& sequence) | |
28 { | |
29 m_service->Require(surfaceId, sequence); | |
30 } | |
31 | |
32 void CanvasSurfaceLayerBridgeClientImpl::asyncSatisfy(const cc::SurfaceSequence&
sequence) | |
33 { | |
34 m_service->Satisfy(sequence); | |
35 } | |
36 | |
37 } // namespace blink; | |
OLD | NEW |