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

Unified Diff: chrome/browser/renderer_host/video_layer.h

Issue 4399003: Deleted code associated with --enable-gpu-rendering and... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
Index: chrome/browser/renderer_host/video_layer.h
===================================================================
--- chrome/browser/renderer_host/video_layer.h (revision 65168)
+++ chrome/browser/renderer_host/video_layer.h (working copy)
@@ -1,51 +0,0 @@
-// Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_VIDEO_LAYER_H_
-#define CHROME_BROWSER_RENDERER_HOST_VIDEO_LAYER_H_
-#pragma once
-
-#include "app/surface/transport_dib.h"
-#include "gfx/size.h"
-
-class RenderProcessHost;
-class RenderWidgetHost;
-
-namespace gfx {
-class Rect;
-}
-
-// Represents a layer of YUV data owned by RenderWidgetHost and composited with
-// the backing store. VideoLayer is responsible for converting to RGB as
-// needed.
-class VideoLayer {
- public:
- virtual ~VideoLayer();
-
- RenderWidgetHost* render_widget_host() const { return render_widget_host_; }
- const gfx::Size& size() { return size_; }
-
- // Copy the incoming bitmap into this video layer. |bitmap| contains YUV
- // pixel data in YV12 format and must be the same dimensions as this video
- // layer. |bitmap_rect| specifies the absolute position and destination size
- // of the bitmap on the backing store.
- virtual void CopyTransportDIB(RenderProcessHost* process,
- TransportDIB::Id bitmap,
- const gfx::Rect& bitmap_rect) = 0;
-
- protected:
- // Can only be constructed via subclasses.
- VideoLayer(RenderWidgetHost* widget, const gfx::Size& size);
-
- private:
- // The owner of this video layer.
- RenderWidgetHost* render_widget_host_;
-
- // The size of the video layer.
- gfx::Size size_;
-
- DISALLOW_COPY_AND_ASSIGN(VideoLayer);
-};
-
-#endif // CHROME_BROWSER_RENDERER_HOST_VIDEO_LAYER_H_
« no previous file with comments | « chrome/browser/renderer_host/test/test_render_view_host.cc ('k') | chrome/browser/renderer_host/video_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698