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

Side by Side Diff: cc/resources/video_resource_updater.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 | « no previous file | content/browser/renderer_host/media/video_capture_device_client_unittest.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "cc/resources/video_resource_updater.h" 5 #include "cc/resources/video_resource_updater.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 break; 55 break;
56 case media::PIXEL_FORMAT_YV12: 56 case media::PIXEL_FORMAT_YV12:
57 case media::PIXEL_FORMAT_YV16: 57 case media::PIXEL_FORMAT_YV16:
58 case media::PIXEL_FORMAT_YV24: 58 case media::PIXEL_FORMAT_YV24:
59 case media::PIXEL_FORMAT_YV12A: 59 case media::PIXEL_FORMAT_YV12A:
60 case media::PIXEL_FORMAT_NV21: 60 case media::PIXEL_FORMAT_NV21:
61 case media::PIXEL_FORMAT_YUY2: 61 case media::PIXEL_FORMAT_YUY2:
62 case media::PIXEL_FORMAT_RGB24: 62 case media::PIXEL_FORMAT_RGB24:
63 case media::PIXEL_FORMAT_RGB32: 63 case media::PIXEL_FORMAT_RGB32:
64 case media::PIXEL_FORMAT_MJPEG: 64 case media::PIXEL_FORMAT_MJPEG:
65 case media::PIXEL_FORMAT_MT21:
65 case media::PIXEL_FORMAT_UNKNOWN: 66 case media::PIXEL_FORMAT_UNKNOWN:
66 break; 67 break;
67 } 68 }
68 return VideoFrameExternalResources::NONE; 69 return VideoFrameExternalResources::NONE;
69 } 70 }
70 71
71 class SyncPointClientImpl : public media::VideoFrame::SyncPointClient { 72 class SyncPointClientImpl : public media::VideoFrame::SyncPointClient {
72 public: 73 public:
73 explicit SyncPointClientImpl(gpu::gles2::GLES2Interface* gl, 74 explicit SyncPointClientImpl(gpu::gles2::GLES2Interface* gl,
74 uint32 sync_point) 75 uint32 sync_point)
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 resource_it->ref_count = 0; 474 resource_it->ref_count = 0;
474 updater->DeleteResource(resource_it); 475 updater->DeleteResource(resource_it);
475 return; 476 return;
476 } 477 }
477 478
478 --resource_it->ref_count; 479 --resource_it->ref_count;
479 DCHECK_GE(resource_it->ref_count, 0); 480 DCHECK_GE(resource_it->ref_count, 0);
480 } 481 }
481 482
482 } // namespace cc 483 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/media/video_capture_device_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698