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

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

Issue 1133363002: Getting rid of duplicate includes from media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/text_renderer.cc ('k') | media/blink/cdm_session_adapter.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/base/video_frame.h" 5 #include "media/base/video_frame.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/aligned_memory.h" 12 #include "base/memory/aligned_memory.h"
13 #include "base/strings/string_piece.h" 13 #include "base/strings/string_piece.h"
14 #include "gpu/command_buffer/common/mailbox_holder.h"
15 #include "media/base/limits.h" 14 #include "media/base/limits.h"
16 #include "media/base/video_util.h" 15 #include "media/base/video_util.h"
17 #include "ui/gfx/geometry/point.h" 16 #include "ui/gfx/geometry/point.h"
18 17
19 namespace media { 18 namespace media {
20 19
21 static bool IsPowerOfTwo(size_t x) { 20 static bool IsPowerOfTwo(size_t x) {
22 return x != 0 && (x & (x - 1)) == 0; 21 return x != 0 && (x & (x - 1)) == 0;
23 } 22 }
24 23
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 for (size_t plane = 0; plane < NumPlanes(format_); ++plane) { 814 for (size_t plane = 0; plane < NumPlanes(format_); ++plane) {
816 for (int row = 0; row < rows(plane); ++row) { 815 for (int row = 0; row < rows(plane); ++row) {
817 base::MD5Update(context, base::StringPiece( 816 base::MD5Update(context, base::StringPiece(
818 reinterpret_cast<char*>(data(plane) + stride(plane) * row), 817 reinterpret_cast<char*>(data(plane) + stride(plane) * row),
819 row_bytes(plane))); 818 row_bytes(plane)));
820 } 819 }
821 } 820 }
822 } 821 }
823 822
824 } // namespace media 823 } // namespace media
OLDNEW
« no previous file with comments | « media/base/text_renderer.cc ('k') | media/blink/cdm_session_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698