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

Unified Diff: cc/layers/video_frame_provider_client_impl.h

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/ui_resource_layer_unittest.cc ('k') | cc/layers/video_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/video_frame_provider_client_impl.h
diff --git a/cc/layers/video_frame_provider_client_impl.h b/cc/layers/video_frame_provider_client_impl.h
deleted file mode 100644
index 39f66fb009db00e81960b3099c243495f8f58f02..0000000000000000000000000000000000000000
--- a/cc/layers/video_frame_provider_client_impl.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// 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_CLIENT_IMPL_H_
-#define CC_LAYERS_VIDEO_FRAME_PROVIDER_CLIENT_IMPL_H_
-
-#include "base/memory/ref_counted.h"
-#include "base/synchronization/lock.h"
-#include "base/threading/thread_checker.h"
-#include "cc/layers/video_frame_provider.h"
-#include "ui/gfx/transform.h"
-
-namespace media { class VideoFrame; }
-
-namespace cc {
-class VideoLayerImpl;
-
-class VideoFrameProviderClientImpl
- : public VideoFrameProvider::Client,
- public base::RefCounted<VideoFrameProviderClientImpl> {
- public:
- static scoped_refptr<VideoFrameProviderClientImpl> Create(
- VideoFrameProvider* provider);
-
- VideoLayerImpl* active_video_layer() { return active_video_layer_; }
- void SetActiveVideoLayer(VideoLayerImpl* video_layer);
-
- void Stop();
- bool Stopped();
-
- scoped_refptr<media::VideoFrame> AcquireLockAndCurrentFrame();
- void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame);
- void ReleaseLock();
- const gfx::Transform& stream_texture_matrix() const {
- return stream_texture_matrix_;
- }
-
- // VideoFrameProvider::Client implementation. These methods are all callable
- // on any thread.
- void StopUsingProvider() override;
- void DidReceiveFrame() override;
- void DidUpdateMatrix(const float* matrix) override;
-
- private:
- explicit VideoFrameProviderClientImpl(VideoFrameProvider* provider);
- friend class base::RefCounted<VideoFrameProviderClientImpl>;
- ~VideoFrameProviderClientImpl() override;
-
- VideoLayerImpl* active_video_layer_;
-
- // Guards the destruction of provider_ and the frame that it provides
- base::Lock provider_lock_;
- VideoFrameProvider* provider_;
- base::ThreadChecker thread_checker_;
-
- gfx::Transform stream_texture_matrix_;
-
- DISALLOW_COPY_AND_ASSIGN(VideoFrameProviderClientImpl);
-};
-
-} // namespace cc
-
-#endif // CC_LAYERS_VIDEO_FRAME_PROVIDER_CLIENT_IMPL_H_
« no previous file with comments | « cc/layers/ui_resource_layer_unittest.cc ('k') | cc/layers/video_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698