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

Side by Side Diff: cc/resources/video_resource_updater.cc

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « cc/resources/scoped_resource.cc ('k') | cc/surfaces/display.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/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 case media::VideoFrame::YV12: 142 case media::VideoFrame::YV12:
143 case media::VideoFrame::I420: 143 case media::VideoFrame::I420:
144 case media::VideoFrame::YV12A: 144 case media::VideoFrame::YV12A:
145 case media::VideoFrame::YV16: 145 case media::VideoFrame::YV16:
146 case media::VideoFrame::YV12J: 146 case media::VideoFrame::YV12J:
147 case media::VideoFrame::YV24: 147 case media::VideoFrame::YV24:
148 case media::VideoFrame::NATIVE_TEXTURE: 148 case media::VideoFrame::NATIVE_TEXTURE:
149 #if defined(VIDEO_HOLE) 149 #if defined(VIDEO_HOLE)
150 case media::VideoFrame::HOLE: 150 case media::VideoFrame::HOLE:
151 #endif // defined(VIDEO_HOLE) 151 #endif // defined(VIDEO_HOLE)
152 case media::VideoFrame::ARGB:
152 return true; 153 return true;
153 154
154 // Unacceptable inputs. ¯\(°_o)/¯ 155 // Unacceptable inputs. ¯\(°_o)/¯
155 case media::VideoFrame::UNKNOWN: 156 case media::VideoFrame::UNKNOWN:
156 case media::VideoFrame::NV12: 157 case media::VideoFrame::NV12:
157 break; 158 break;
158 } 159 }
159 return false; 160 return false;
160 } 161 }
161 162
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 resource_it->ref_count = 0; 421 resource_it->ref_count = 0;
421 updater->DeleteResource(resource_it); 422 updater->DeleteResource(resource_it);
422 return; 423 return;
423 } 424 }
424 425
425 --resource_it->ref_count; 426 --resource_it->ref_count;
426 DCHECK_GE(resource_it->ref_count, 0); 427 DCHECK_GE(resource_it->ref_count, 0);
427 } 428 }
428 429
429 } // namespace cc 430 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/scoped_resource.cc ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698