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

Side by Side Diff: media/blink/skcanvas_video_renderer.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/base/video_types.cc ('k') | media/blink/video_frame_compositor.cc » ('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) 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 #include "media/blink/skcanvas_video_renderer.h" 5 #include "media/blink/skcanvas_video_renderer.h"
6 6
7 #include "gpu/GLES2/gl2extchromium.h" 7 #include "gpu/GLES2/gl2extchromium.h"
8 #include "gpu/command_buffer/client/gles2_interface.h" 8 #include "gpu/command_buffer/client/gles2_interface.h"
9 #include "gpu/command_buffer/common/mailbox_holder.h" 9 #include "gpu/command_buffer/common/mailbox_holder.h"
10 #include "media/base/video_frame.h" 10 #include "media/base/video_frame.h"
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 break; 535 break;
536 case PIXEL_FORMAT_NV12: 536 case PIXEL_FORMAT_NV12:
537 case PIXEL_FORMAT_NV21: 537 case PIXEL_FORMAT_NV21:
538 case PIXEL_FORMAT_UYVY: 538 case PIXEL_FORMAT_UYVY:
539 case PIXEL_FORMAT_YUY2: 539 case PIXEL_FORMAT_YUY2:
540 case PIXEL_FORMAT_ARGB: 540 case PIXEL_FORMAT_ARGB:
541 case PIXEL_FORMAT_XRGB: 541 case PIXEL_FORMAT_XRGB:
542 case PIXEL_FORMAT_RGB24: 542 case PIXEL_FORMAT_RGB24:
543 case PIXEL_FORMAT_RGB32: 543 case PIXEL_FORMAT_RGB32:
544 case PIXEL_FORMAT_MJPEG: 544 case PIXEL_FORMAT_MJPEG:
545 case PIXEL_FORMAT_MT21:
545 case PIXEL_FORMAT_UNKNOWN: 546 case PIXEL_FORMAT_UNKNOWN:
546 NOTREACHED(); 547 NOTREACHED();
547 } 548 }
548 } 549 }
549 550
550 // static 551 // static
551 void SkCanvasVideoRenderer::CopyVideoFrameSingleTextureToGLTexture( 552 void SkCanvasVideoRenderer::CopyVideoFrameSingleTextureToGLTexture(
552 gpu::gles2::GLES2Interface* gl, 553 gpu::gles2::GLES2Interface* gl,
553 VideoFrame* video_frame, 554 VideoFrame* video_frame,
554 unsigned int texture, 555 unsigned int texture,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 video_frame->UpdateReleaseSyncPoint(&client); 588 video_frame->UpdateReleaseSyncPoint(&client);
588 } 589 }
589 590
590 void SkCanvasVideoRenderer::ResetCache() { 591 void SkCanvasVideoRenderer::ResetCache() {
591 // Clear cached values. 592 // Clear cached values.
592 last_image_ = nullptr; 593 last_image_ = nullptr;
593 last_timestamp_ = kNoTimestamp(); 594 last_timestamp_ = kNoTimestamp();
594 } 595 }
595 596
596 } // namespace media 597 } // namespace media
OLDNEW
« no previous file with comments | « media/base/video_types.cc ('k') | media/blink/video_frame_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698