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

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

Issue 2786012: Merge 49131 - Add rgb_frame size tracking and resizing to fix security issue ... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/375/src/
Patch Set: Created 10 years, 6 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 | Annotate | Revision Log
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 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
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_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/backing_store_x.cc ('k') | chrome/browser/renderer_host/video_layer_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698