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

Side by Side Diff: chrome/browser/renderer_host/video_layer_x.h

Issue 3034039: FBTF: Minor gfx/ header cleanup. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: win fix Created 10 years, 4 months 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/gtk/rounded_window.cc ('k') | chrome/gpu/gpu_backing_store_glx.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/rounded_window.cc ('k') | chrome/gpu/gpu_backing_store_glx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698