| 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_BROWSER_RENDERER_HOST_VIDEO_LAYER_X_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_VIDEO_LAYER_X_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_VIDEO_LAYER_X_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_VIDEO_LAYER_X_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "app/x11_util.h" | 9 #include "app/x11_util.h" |
| 10 #include "chrome/browser/renderer_host/video_layer.h" | 10 #include "chrome/browser/renderer_host/video_layer.h" |
| 11 #include "gfx/rect.h" |
| 11 | 12 |
| 12 // Implements a YUV data layer using X to hold the RGB data. | 13 // Implements a YUV data layer using X to hold the RGB data. |
| 13 class VideoLayerX : public VideoLayer { | 14 class VideoLayerX : public VideoLayer { |
| 14 public: | 15 public: |
| 15 VideoLayerX(RenderWidgetHost* widget, const gfx::Size& size, void* visual, | 16 VideoLayerX(RenderWidgetHost* widget, const gfx::Size& size, void* visual, |
| 16 int depth); | 17 int depth); |
| 17 virtual ~VideoLayerX(); | 18 virtual ~VideoLayerX(); |
| 18 | 19 |
| 19 // VideoLayer implementation. | 20 // VideoLayer implementation. |
| 20 virtual void CopyTransportDIB(RenderProcessHost* process, | 21 virtual void CopyTransportDIB(RenderProcessHost* process, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 45 scoped_array<uint8> rgb_frame_; | 46 scoped_array<uint8> rgb_frame_; |
| 46 size_t rgb_frame_size_; | 47 size_t rgb_frame_size_; |
| 47 | 48 |
| 48 // Destination size and absolution position of the converted frame. | 49 // Destination size and absolution position of the converted frame. |
| 49 gfx::Rect rgb_rect_; | 50 gfx::Rect rgb_rect_; |
| 50 | 51 |
| 51 DISALLOW_COPY_AND_ASSIGN(VideoLayerX); | 52 DISALLOW_COPY_AND_ASSIGN(VideoLayerX); |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 #endif // CHROME_BROWSER_RENDERER_HOST_VIDEO_LAYER_X_H_ | 55 #endif // CHROME_BROWSER_RENDERER_HOST_VIDEO_LAYER_X_H_ |
| OLD | NEW |