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

Unified Diff: cc/video_layer_impl.h

Issue 12603013: Part 10 of cc/ directory shuffles: layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/video_layer.cc ('k') | cc/video_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/video_layer_impl.h
diff --git a/cc/video_layer_impl.h b/cc/video_layer_impl.h
deleted file mode 100644
index 44083a93ff12c079e613965b3ead97fac6b8d429..0000000000000000000000000000000000000000
--- a/cc/video_layer_impl.h
+++ /dev/null
@@ -1,88 +0,0 @@
-// Copyright 2012 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_VIDEO_LAYER_IMPL_H_
-#define CC_VIDEO_LAYER_IMPL_H_
-
-#include "base/callback.h"
-#include "base/synchronization/lock.h"
-#include "cc/base/cc_export.h"
-#include "cc/layer_impl.h"
-#include "cc/video_frame_provider.h"
-#include "media/base/video_frame.h"
-#include "third_party/khronos/GLES2/gl2.h"
-#include "ui/gfx/size.h"
-#include "ui/gfx/transform.h"
-
-namespace media {
-class SkCanvasVideoRenderer;
-}
-
-namespace cc {
-class LayerTreeHostImpl;
-class VideoFrameProviderClientImpl;
-
-class CC_EXPORT VideoLayerImpl : public LayerImpl {
- public:
- static scoped_ptr<VideoLayerImpl> Create(LayerTreeImpl* tree_impl,
- int id,
- VideoFrameProvider* provider);
- virtual ~VideoLayerImpl();
-
- // LayerImpl implementation.
- virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
- OVERRIDE;
- virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE;
- virtual void WillDraw(ResourceProvider* resource_provider) OVERRIDE;
- virtual void AppendQuads(QuadSink* quad_sink,
- AppendQuadsData* append_quads_data) OVERRIDE;
- virtual void DidDraw(ResourceProvider* resource_provider) OVERRIDE;
- virtual void DidBecomeActive() OVERRIDE;
- virtual void DidLoseOutputSurface() OVERRIDE;
-
- void SetNeedsRedraw();
-
- void SetProviderClientImpl(
- scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl);
-
- struct FramePlane {
- ResourceProvider::ResourceId resource_id;
- gfx::Size size;
- GLenum format;
-
- FramePlane() : resource_id(0), format(GL_LUMINANCE) {}
-
- bool AllocateData(ResourceProvider* resource_provider);
- void FreeData(ResourceProvider* resource_provider);
- };
-
- private:
- VideoLayerImpl(LayerTreeImpl* tree_impl, int id);
-
- virtual const char* LayerTypeAsString() const OVERRIDE;
-
- void WillDrawInternal(ResourceProvider* resource_provider);
- bool AllocatePlaneData(ResourceProvider* resource_provider);
- bool CopyPlaneData(ResourceProvider* resource_provider);
- void FreePlaneData(ResourceProvider* resource_provider);
- void FreeUnusedPlaneData(ResourceProvider* resource_provider);
- size_t NumPlanes() const;
-
- scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl_;
-
- media::VideoFrame* frame_;
- GLenum format_;
- bool convert_yuv_;
- ResourceProvider::ResourceId external_texture_resource_;
- scoped_ptr<media::SkCanvasVideoRenderer> video_renderer_;
-
- // Each index in this array corresponds to a plane in media::VideoFrame.
- FramePlane frame_planes_[media::VideoFrame::kMaxPlanes];
-
- DISALLOW_COPY_AND_ASSIGN(VideoLayerImpl);
-};
-
-} // namespace cc
-
-#endif // CC_VIDEO_LAYER_IMPL_H_
« no previous file with comments | « cc/video_layer.cc ('k') | cc/video_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698