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

Side by Side Diff: media/blink/video_frame_compositor.cc

Issue 1326153002: Add PIXEL_FORMAT_MT21. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 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 | « media/blink/skcanvas_video_renderer.cc ('k') | media/mojo/interfaces/media_types.mojom » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "media/blink/video_frame_compositor.h" 5 #include "media/blink/video_frame_compositor.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/time/default_tick_clock.h" 9 #include "base/time/default_tick_clock.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 13 matching lines...) Expand all
24 case PIXEL_FORMAT_YV12: 24 case PIXEL_FORMAT_YV12:
25 case PIXEL_FORMAT_YV16: 25 case PIXEL_FORMAT_YV16:
26 case PIXEL_FORMAT_YV24: 26 case PIXEL_FORMAT_YV24:
27 case PIXEL_FORMAT_NV12: 27 case PIXEL_FORMAT_NV12:
28 case PIXEL_FORMAT_NV21: 28 case PIXEL_FORMAT_NV21:
29 case PIXEL_FORMAT_UYVY: 29 case PIXEL_FORMAT_UYVY:
30 case PIXEL_FORMAT_YUY2: 30 case PIXEL_FORMAT_YUY2:
31 case PIXEL_FORMAT_XRGB: 31 case PIXEL_FORMAT_XRGB:
32 case PIXEL_FORMAT_RGB24: 32 case PIXEL_FORMAT_RGB24:
33 case PIXEL_FORMAT_MJPEG: 33 case PIXEL_FORMAT_MJPEG:
34 case PIXEL_FORMAT_MT21:
34 return true; 35 return true;
35 case PIXEL_FORMAT_YV12A: 36 case PIXEL_FORMAT_YV12A:
36 case PIXEL_FORMAT_ARGB: 37 case PIXEL_FORMAT_ARGB:
37 case PIXEL_FORMAT_RGB32: 38 case PIXEL_FORMAT_RGB32:
38 break; 39 break;
39 } 40 }
40 return false; 41 return false;
41 } 42 }
42 43
43 VideoFrameCompositor::VideoFrameCompositor( 44 VideoFrameCompositor::VideoFrameCompositor(
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 last_interval_ = deadline_max - deadline_min; 263 last_interval_ = deadline_max - deadline_min;
263 264
264 // Restart the background rendering timer whether we're background rendering 265 // Restart the background rendering timer whether we're background rendering
265 // or not; in either case we should wait for |kBackgroundRenderingTimeoutMs|. 266 // or not; in either case we should wait for |kBackgroundRenderingTimeoutMs|.
266 if (background_rendering_enabled_) 267 if (background_rendering_enabled_)
267 background_rendering_timer_.Reset(); 268 background_rendering_timer_.Reset();
268 return new_frame || had_new_background_frame; 269 return new_frame || had_new_background_frame;
269 } 270 }
270 271
271 } // namespace media 272 } // namespace media
OLDNEW
« no previous file with comments | « media/blink/skcanvas_video_renderer.cc ('k') | media/mojo/interfaces/media_types.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698