// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CC_LAYERS_VIDEO_FRAME_PROVIDER_H_ #define CC_LAYERS_VIDEO_FRAME_PROVIDER_H_ #include "base/memory/ref_counted.h" #include "base/time/time.h" #include "cc/cc_export.h" namespace media { class VideoFrame; } namespace cc { // VideoFrameProvider and VideoFrameProvider::Client define the relationship by // which video frames are exchanged between a provider and client. // // Threading notes: This class may be used in a multithreaded manner. However, // if the Client implementation calls GetCurrentFrame()/PutCurrentFrame() from // one thread, the provider must ensure that all client methods (except // StopUsingProvider()) are called from that thread (typically the compositor // thread). class CC_EXPORT VideoFrameProvider { … }; } // namespace cc #endif // CC_LAYERS_VIDEO_FRAME_PROVIDER_H_