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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/SurfaceLayerBridge.cpp

Issue 2956713003: Replaces VideoLayer with a SurfaceLayer in WebMediaPlayerImpl (Closed)
Patch Set: Replaces VideoLayer with SurfaceLayer. Created 3 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
(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/SurfaceLayerBridge.h"
6
7 namespace blink {
8
9 SequenceSurfaceReferenceFactoryImpl::SequenceSurfaceReferenceFactoryImpl(
10 base::WeakPtr<SurfaceLayerBridge> bridge)
11 : bridge_(bridge) {}
12
13 void SequenceSurfaceReferenceFactoryImpl::RequireSequence(
14 const cc::SurfaceId& id,
15 const cc::SurfaceSequence& sequence) const {
16 DCHECK(bridge_);
17 bridge_->RequireCallback(id, sequence);
18 }
19
20 void SequenceSurfaceReferenceFactoryImpl::SatisfySequence(
21 const cc::SurfaceSequence& sequence) const {
22 if (bridge_)
23 bridge_->SatisfyCallback(sequence);
24 }
25
26 SurfaceLayerBridge::SurfaceLayerBridge(){};
27 SurfaceLayerBridge::~SurfaceLayerBridge(){};
28
29 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698