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

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

Issue 823703003: Cleanup: Update the path to insets and point headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: point.h Created 6 years 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 | « extensions/browser/app_window/size_constraints.cc ('k') | printing/emf_win_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 (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" 14 #include "gpu/command_buffer/common/mailbox_holder.h"
15 #include "media/base/limits.h" 15 #include "media/base/limits.h"
16 #include "media/base/video_util.h" 16 #include "media/base/video_util.h"
17 #include "ui/gfx/point.h" 17 #include "ui/gfx/geometry/point.h"
18 18
19 #if !defined(MEDIA_FOR_CAST_IOS) 19 #if !defined(MEDIA_FOR_CAST_IOS)
20 #include "third_party/skia/include/core/SkBitmap.h" 20 #include "third_party/skia/include/core/SkBitmap.h"
21 #endif 21 #endif
22 22
23 namespace media { 23 namespace media {
24 24
25 static bool IsPowerOfTwo(size_t x) { 25 static bool IsPowerOfTwo(size_t x) {
26 return x != 0 && (x & (x - 1)) == 0; 26 return x != 0 && (x & (x - 1)) == 0;
27 } 27 }
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 for (size_t plane = 0; plane < NumPlanes(format_); ++plane) { 771 for (size_t plane = 0; plane < NumPlanes(format_); ++plane) {
772 for (int row = 0; row < rows(plane); ++row) { 772 for (int row = 0; row < rows(plane); ++row) {
773 base::MD5Update(context, base::StringPiece( 773 base::MD5Update(context, base::StringPiece(
774 reinterpret_cast<char*>(data(plane) + stride(plane) * row), 774 reinterpret_cast<char*>(data(plane) + stride(plane) * row),
775 row_bytes(plane))); 775 row_bytes(plane)));
776 } 776 }
777 } 777 }
778 } 778 }
779 779
780 } // namespace media 780 } // namespace media
OLDNEW
« no previous file with comments | « extensions/browser/app_window/size_constraints.cc ('k') | printing/emf_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698