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 | 7 |
8 #include "app/x11_util.h" | 8 #include "app/x11_util.h" |
9 #include "chrome/browser/renderer_host/video_layer.h" | 9 #include "chrome/browser/renderer_host/video_layer.h" |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 // Handle to the server side pixmap which is our video layer. | 36 // Handle to the server side pixmap which is our video layer. |
37 XID pixmap_; | 37 XID pixmap_; |
38 // Graphics context for painting our video layer. | 38 // Graphics context for painting our video layer. |
39 void* pixmap_gc_; | 39 void* pixmap_gc_; |
40 // Server side bits-per-pixel for |pixmap_|. | 40 // Server side bits-per-pixel for |pixmap_|. |
41 int pixmap_bpp_; | 41 int pixmap_bpp_; |
42 | 42 |
43 // Most recently converted frame stored as 32-bit ARGB. | 43 // Most recently converted frame stored as 32-bit ARGB. |
44 scoped_array<uint8> rgb_frame_; | 44 scoped_array<uint8> rgb_frame_; |
| 45 size_t rgb_frame_size_; |
| 46 |
45 // Destination size and absolution position of the converted frame. | 47 // Destination size and absolution position of the converted frame. |
46 gfx::Rect rgb_rect_; | 48 gfx::Rect rgb_rect_; |
47 | 49 |
48 DISALLOW_COPY_AND_ASSIGN(VideoLayerX); | 50 DISALLOW_COPY_AND_ASSIGN(VideoLayerX); |
49 }; | 51 }; |
50 | 52 |
51 #endif // CHROME_BROWSER_RENDERER_HOST_VIDEO_LAYER_X_H_ | 53 #endif // CHROME_BROWSER_RENDERER_HOST_VIDEO_LAYER_X_H_ |
OLD | NEW |