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

Unified Diff: chrome/gpu/gpu_video_layer_glx.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
« no previous file with comments | « chrome/gpu/gpu_thread.cc ('k') | chrome/gpu/gpu_video_layer_glx.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/gpu/gpu_video_layer_glx.h
===================================================================
--- chrome/gpu/gpu_video_layer_glx.h (revision 65168)
+++ chrome/gpu/gpu_video_layer_glx.h (working copy)
@@ -1,79 +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_GPU_GPU_VIDEO_LAYER_GLX_H_
-#define CHROME_GPU_GPU_VIDEO_LAYER_GLX_H_
-#pragma once
-
-#include "app/surface/transport_dib.h"
-#include "base/basictypes.h"
-#include "base/process.h"
-#include "gfx/rect.h"
-#include "gfx/size.h"
-#include "ipc/ipc_channel.h"
-#include "gfx/rect.h"
-#include "gfx/size.h"
-
-class GpuViewX;
-class GpuThread;
-
-class GpuVideoLayerGLX : public IPC::Channel::Listener {
- public:
- GpuVideoLayerGLX(GpuViewX* view,
- GpuThread* gpu_thread,
- int32 routing_id,
- const gfx::Size& size);
- virtual ~GpuVideoLayerGLX();
-
- // Renders the video layer using the current GL context with respect to the
- // given |viewport_size|.
- //
- // TODO(scherkus): we also need scrolling information to determine where
- // exactly to place our quad.
- void Render(const gfx::Size& viewport_size);
-
- // IPC::Channel::Listener implementation.
- virtual void OnMessageReceived(const IPC::Message& message);
- virtual void OnChannelConnected(int32 peer_pid);
- virtual void OnChannelError();
-
- private:
- // Message handlers.
- void OnPaintToVideoLayer(base::ProcessId source_process_id,
- TransportDIB::Id id,
- const gfx::Rect& bitmap_rect);
-
- // Calculates vertices for |object| relative to |world|, where |world| is
- // assumed to represent a full-screen quad. |vertices| should be an array of
- // 8 floats.
- //
- // TODO(scherkus): not sure how to describe what this does.
- static void CalculateVertices(const gfx::Size& world,
- const gfx::Rect& object,
- float* vertices);
-
- // GPU process related.
- GpuViewX* view_;
- GpuThread* gpu_thread_;
- int32 routing_id_;
-
- // The native size of the incoming YUV frames.
- gfx::Size native_size_;
-
- // The target absolute position and size of the RGB frames.
- gfx::Rect target_rect_;
-
- // The target absolute position and size expressed as quad vertices.
- float target_vertices_[8];
-
- // 3 textures, one for each plane.
- unsigned int textures_[3];
-
- // Shader program for YUV->RGB conversion.
- unsigned int program_;
-
- DISALLOW_COPY_AND_ASSIGN(GpuVideoLayerGLX);
-};
-
-#endif // CHROME_GPU_GPU_VIDEO_LAYER_GLX_H_
« no previous file with comments | « chrome/gpu/gpu_thread.cc ('k') | chrome/gpu/gpu_video_layer_glx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698