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

Side by Side Diff: media/base/video_frame_unittest.cc

Issue 623263003: replace OVERRIDE and FINAL with override and final in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/user_input_monitor_win.cc ('k') | media/base/wall_clock_time_source.h » ('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/base/video_frame.h" 5 #include "media/base/video_frame.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/format_macros.h" 9 #include "base/format_macros.h"
10 #include "base/memory/aligned_memory.h" 10 #include "base/memory/aligned_memory.h"
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // as default value. 265 // as default value.
266 EXPECT_EQ(0u, called_sync_point); 266 EXPECT_EQ(0u, called_sync_point);
267 } 267 }
268 268
269 namespace { 269 namespace {
270 270
271 class SyncPointClientImpl : public VideoFrame::SyncPointClient { 271 class SyncPointClientImpl : public VideoFrame::SyncPointClient {
272 public: 272 public:
273 explicit SyncPointClientImpl(uint32 sync_point) : sync_point_(sync_point) {} 273 explicit SyncPointClientImpl(uint32 sync_point) : sync_point_(sync_point) {}
274 virtual ~SyncPointClientImpl() {} 274 virtual ~SyncPointClientImpl() {}
275 virtual uint32 InsertSyncPoint() OVERRIDE { return sync_point_; } 275 virtual uint32 InsertSyncPoint() override { return sync_point_; }
276 virtual void WaitSyncPoint(uint32 sync_point) OVERRIDE {} 276 virtual void WaitSyncPoint(uint32 sync_point) override {}
277 277
278 private: 278 private:
279 uint32 sync_point_; 279 uint32 sync_point_;
280 }; 280 };
281 281
282 } // namespace 282 } // namespace
283 283
284 // Verify the gpu::MailboxHolder::ReleaseCallback is called when VideoFrame is 284 // Verify the gpu::MailboxHolder::ReleaseCallback is called when VideoFrame is
285 // destroyed with the release sync point, which was updated by clients. 285 // destroyed with the release sync point, which was updated by clients.
286 // (i.e. the compositor, webgl). 286 // (i.e. the compositor, webgl).
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 322
323 gfx::Size size(kWidth, kHeight); 323 gfx::Size size(kWidth, kHeight);
324 scoped_refptr<media::VideoFrame> frame = VideoFrame::CreateFrame( 324 scoped_refptr<media::VideoFrame> frame = VideoFrame::CreateFrame(
325 media::VideoFrame::YV12, size, gfx::Rect(size), size, kTimestamp); 325 media::VideoFrame::YV12, size, gfx::Rect(size), size, kTimestamp);
326 326
327 for (size_t i = 0; i < VideoFrame::NumPlanes(frame->format()); ++i) 327 for (size_t i = 0; i < VideoFrame::NumPlanes(frame->format()); ++i)
328 EXPECT_EQ(0, frame->data(i)[0]); 328 EXPECT_EQ(0, frame->data(i)[0]);
329 } 329 }
330 330
331 } // namespace media 331 } // namespace media
OLDNEW
« no previous file with comments | « media/base/user_input_monitor_win.cc ('k') | media/base/wall_clock_time_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698