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

Side by Side Diff: media/renderers/skcanvas_video_renderer.h

Issue 2428263004: 16 bpp video stream capture, render and createImageBitmap(video) using (CPU) shared memory buffers (Closed)
Patch Set: Split webrtc_depth_capture_browsertest. Thanks phoglund@, Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 MEDIA_RENDERERS_SKCANVAS_VIDEO_RENDERER_H_ 5 #ifndef MEDIA_RENDERERS_SKCANVAS_VIDEO_RENDERER_H_
6 #define MEDIA_RENDERERS_SKCANVAS_VIDEO_RENDERER_H_ 6 #define MEDIA_RENDERERS_SKCANVAS_VIDEO_RENDERER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/threading/thread_checker.h" 13 #include "base/threading/thread_checker.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "base/timer/timer.h" 15 #include "base/timer/timer.h"
16 #include "media/base/media_export.h" 16 #include "media/base/media_export.h"
17 #include "media/base/timestamp_constants.h" 17 #include "media/base/timestamp_constants.h"
18 #include "media/base/video_frame.h" 18 #include "media/base/video_frame.h"
19 #include "media/base/video_rotation.h" 19 #include "media/base/video_rotation.h"
20 #include "media/filters/context_3d.h" 20 #include "media/filters/context_3d.h"
21 #include "third_party/skia/include/core/SkImage.h" 21 #include "third_party/skia/include/core/SkImage.h"
22 #include "third_party/skia/include/core/SkRefCnt.h" 22 #include "third_party/skia/include/core/SkRefCnt.h"
23 #include "third_party/skia/include/core/SkXfermode.h" 23 #include "third_party/skia/include/core/SkXfermode.h"
24 24
25 class SkCanvas; 25 class SkCanvas;
26 class SkImage;
27 26
28 namespace gfx { 27 namespace gfx {
29 class RectF; 28 class RectF;
30 } 29 }
31 30
32 namespace media { 31 namespace media {
33 class VideoImageGenerator; 32 class VideoImageGenerator;
34 33
35 // Handles rendering of VideoFrames to SkCanvases. 34 // Handles rendering of VideoFrames to SkCanvases.
36 class MEDIA_EXPORT SkCanvasVideoRenderer { 35 class MEDIA_EXPORT SkCanvasVideoRenderer {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 121
123 // Used for unit test. 122 // Used for unit test.
124 SkISize last_image_dimensions_for_testing_; 123 SkISize last_image_dimensions_for_testing_;
125 124
126 DISALLOW_COPY_AND_ASSIGN(SkCanvasVideoRenderer); 125 DISALLOW_COPY_AND_ASSIGN(SkCanvasVideoRenderer);
127 }; 126 };
128 127
129 } // namespace media 128 } // namespace media
130 129
131 #endif // MEDIA_RENDERERS_SKCANVAS_VIDEO_RENDERER_H_ 130 #endif // MEDIA_RENDERERS_SKCANVAS_VIDEO_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698