| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 #include "platform/graphics/CanvasSurfaceLayerBridgeClientImpl.h" | 5 #include "platform/graphics/CanvasSurfaceLayerBridgeClientImpl.h" |
| 6 | 6 |
| 7 #include "public/platform/Platform.h" | 7 #include "public/platform/Platform.h" |
| 8 #include "public/platform/ServiceRegistry.h" | 8 #include "public/platform/ServiceRegistry.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 bool CanvasSurfaceLayerBridgeClientImpl::syncGetSurfaceId(cc::SurfaceId* surface
IdPtr) | 22 bool CanvasSurfaceLayerBridgeClientImpl::syncGetSurfaceId(cc::SurfaceId* surface
IdPtr) |
| 23 { | 23 { |
| 24 return m_service->GetSurfaceId(surfaceIdPtr); | 24 return m_service->GetSurfaceId(surfaceIdPtr); |
| 25 } | 25 } |
| 26 | 26 |
| 27 void CanvasSurfaceLayerBridgeClientImpl::asyncRequestSurfaceCreation(const cc::S
urfaceId& surfaceId) | 27 void CanvasSurfaceLayerBridgeClientImpl::asyncRequestSurfaceCreation(const cc::S
urfaceId& surfaceId) |
| 28 { | 28 { |
| 29 m_service->RequestSurfaceCreation(surfaceId); | 29 m_service->RequestSurfaceCreation(surfaceId); |
| 30 } | 30 } |
| 31 | 31 |
| 32 void CanvasSurfaceLayerBridgeClientImpl::asyncRequire(cc::SurfaceId surfaceId, c
c::SurfaceSequence sequence) | 32 void CanvasSurfaceLayerBridgeClientImpl::asyncRequire(const cc::SurfaceId& surfa
ceId, const cc::SurfaceSequence& sequence) |
| 33 { | 33 { |
| 34 m_service->Require(surfaceId, sequence); | 34 m_service->Require(surfaceId, sequence); |
| 35 } | 35 } |
| 36 | 36 |
| 37 void CanvasSurfaceLayerBridgeClientImpl::asyncSatisfy(cc::SurfaceSequence sequen
ce) | 37 void CanvasSurfaceLayerBridgeClientImpl::asyncSatisfy(const cc::SurfaceSequence&
sequence) |
| 38 { | 38 { |
| 39 m_service->Satisfy(sequence); | 39 m_service->Satisfy(sequence); |
| 40 } | 40 } |
| 41 | 41 |
| 42 } // namespace blink; | 42 } // namespace blink; |
| OLD | NEW |