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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridgeClient.h

Issue 2102123002: Make Satisfy/Require callbacks pass Surface id and sequence by reference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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
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 #ifndef CanvasSurfaceLayerBridgeClient_h 5 #ifndef CanvasSurfaceLayerBridgeClient_h
6 #define CanvasSurfaceLayerBridgeClient_h 6 #define CanvasSurfaceLayerBridgeClient_h
7 7
8 #include "cc/surfaces/surface_id.h" 8 #include "cc/surfaces/surface_id.h"
9 #include "cc/surfaces/surface_sequence.h" 9 #include "cc/surfaces/surface_sequence.h"
10 #include "platform/PlatformExport.h" 10 #include "platform/PlatformExport.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 // This class is an interface for all mojo calls from CanvasSurfaceLayerBridge 14 // This class is an interface for all mojo calls from CanvasSurfaceLayerBridge
15 // to OffscreenCanvasSurfaceService. 15 // to OffscreenCanvasSurfaceService.
16 class PLATFORM_EXPORT CanvasSurfaceLayerBridgeClient { 16 class PLATFORM_EXPORT CanvasSurfaceLayerBridgeClient {
17 public: 17 public:
18 virtual ~CanvasSurfaceLayerBridgeClient() {}; 18 virtual ~CanvasSurfaceLayerBridgeClient() {};
19 19
20 // Calls that help initial creation of SurfaceLayer. 20 // Calls that help initial creation of SurfaceLayer.
21 virtual bool syncGetSurfaceId(cc::SurfaceId*) = 0; 21 virtual bool syncGetSurfaceId(cc::SurfaceId*) = 0;
22 virtual void asyncRequestSurfaceCreation(const cc::SurfaceId&) = 0; 22 virtual void asyncRequestSurfaceCreation(const cc::SurfaceId&) = 0;
23 23
24 // Calls that ensure correct destruction order of surface. 24 // Calls that ensure correct destruction order of surface.
25 virtual void asyncRequire(cc::SurfaceId, cc::SurfaceSequence) = 0; 25 virtual void asyncRequire(const cc::SurfaceId&, const cc::SurfaceSequence&) = 0;
26 virtual void asyncSatisfy(cc::SurfaceSequence) = 0; 26 virtual void asyncSatisfy(const cc::SurfaceSequence&) = 0;
27 }; 27 };
28 28
29 } // namespace blink 29 } // namespace blink
30 30
31 #endif // CanvasSurfaceLayerBridgeClient_h 31 #endif // CanvasSurfaceLayerBridgeClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698