| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_GPU_GPU_VIDEO_LAYER_GLX_H_ | 5 #ifndef CHROME_GPU_GPU_VIDEO_LAYER_GLX_H_ |
| 6 #define CHROME_GPU_GPU_VIDEO_LAYER_GLX_H_ | 6 #define CHROME_GPU_GPU_VIDEO_LAYER_GLX_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "app/surface/transport_dib.h" | 9 #include "app/surface/transport_dib.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/process.h" | 11 #include "base/process.h" |
| 12 #include "gfx/rect.h" | 12 #include "gfx/rect.h" |
| 13 #include "gfx/size.h" | 13 #include "gfx/size.h" |
| 14 #include "ipc/ipc_channel.h" | 14 #include "ipc/ipc_channel.h" |
| 15 #include "gfx/rect.h" |
| 16 #include "gfx/size.h" |
| 15 | 17 |
| 16 class GpuViewX; | 18 class GpuViewX; |
| 17 class GpuThread; | 19 class GpuThread; |
| 18 | 20 |
| 19 class GpuVideoLayerGLX : public IPC::Channel::Listener { | 21 class GpuVideoLayerGLX : public IPC::Channel::Listener { |
| 20 public: | 22 public: |
| 21 GpuVideoLayerGLX(GpuViewX* view, | 23 GpuVideoLayerGLX(GpuViewX* view, |
| 22 GpuThread* gpu_thread, | 24 GpuThread* gpu_thread, |
| 23 int32 routing_id, | 25 int32 routing_id, |
| 24 const gfx::Size& size); | 26 const gfx::Size& size); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // 3 textures, one for each plane. | 70 // 3 textures, one for each plane. |
| 69 unsigned int textures_[3]; | 71 unsigned int textures_[3]; |
| 70 | 72 |
| 71 // Shader program for YUV->RGB conversion. | 73 // Shader program for YUV->RGB conversion. |
| 72 unsigned int program_; | 74 unsigned int program_; |
| 73 | 75 |
| 74 DISALLOW_COPY_AND_ASSIGN(GpuVideoLayerGLX); | 76 DISALLOW_COPY_AND_ASSIGN(GpuVideoLayerGLX); |
| 75 }; | 77 }; |
| 76 | 78 |
| 77 #endif // CHROME_GPU_GPU_VIDEO_LAYER_GLX_H_ | 79 #endif // CHROME_GPU_GPU_VIDEO_LAYER_GLX_H_ |
| OLD | NEW |