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

Unified Diff: content/renderer/renderer_gpu_video_decoder_factories.h

Issue 8897022: Revert 113895 - <video> decode in hardware! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 | « content/renderer/render_view_impl.cc ('k') | content/renderer/renderer_gpu_video_decoder_factories.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_gpu_video_decoder_factories.h
===================================================================
--- content/renderer/renderer_gpu_video_decoder_factories.h (revision 113907)
+++ content/renderer/renderer_gpu_video_decoder_factories.h (working copy)
@@ -1,49 +0,0 @@
-// Copyright (c) 2011 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 CONTENT_RENDERER_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_
-#define CONTENT_RENDERER_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_
-#pragma once
-
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/weak_ptr.h"
-#include "media/filters/gpu_video_decoder.h"
-#include "ui/gfx/size.h"
-
-class GpuChannelHost;
-class RendererGLContext;
-
-// Glue code to expose functionality needed by media::GpuVideoDecoder to
-// RenderViewImpl. This class is entirely an implementation detail of
-// RenderViewImpl and only has its own header to allow extraction of its
-// implementation from render_view_impl.cc which is already far too large.
-class RendererGpuVideoDecoderFactories
- : public media::GpuVideoDecoder::Factories {
- public:
- // Takes a ref on |gpu_channel_host| and tests |context| for NULL before each
- // use.
- RendererGpuVideoDecoderFactories(GpuChannelHost* gpu_channel_host,
- base::WeakPtr<RendererGLContext> context);
-
- virtual ~RendererGpuVideoDecoderFactories();
-
- media::VideoDecodeAccelerator* CreateVideoDecodeAccelerator(
- media::VideoDecodeAccelerator::Profile profile,
- media::VideoDecodeAccelerator::Client* client) OVERRIDE;
-
- virtual bool CreateTextures(int32 count, const gfx::Size& size,
- std::vector<uint32>* texture_ids) OVERRIDE;
-
- virtual bool DeleteTexture(uint32 texture_id) OVERRIDE;
-
- virtual base::SharedMemory* CreateSharedMemory(size_t size) OVERRIDE;
-
- private:
- scoped_refptr<GpuChannelHost> gpu_channel_host_;
- base::WeakPtr<RendererGLContext> context_;
- DISALLOW_IMPLICIT_CONSTRUCTORS(RendererGpuVideoDecoderFactories);
-};
-
-#endif // CONTENT_RENDERER_RENDERER_GPU_VIDEO_DECODER_FACTORIES_H_
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/renderer_gpu_video_decoder_factories.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698