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

Side by Side Diff: device/sensors/public/cpp/motion_data.cc

Issue 2415083002: Move Device Sensors client files from Blink to //device/sensors client lib (Closed)
Patch Set: Rebase Created 3 years, 9 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 | « device/sensors/public/cpp/motion_data.h ('k') | device/sensors/public/cpp/orientation_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "device/sensors/public/cpp/motion_data.h"
6
7 #include <string.h>
8
9 namespace device {
10
11 MotionData::MotionData() {
12 // Make sure to zero out the memory so that there are no uninitialized bits.
13 // This object is used in the shared memory buffer and is memory copied by
14 // two processes. Valgrind will complain if we copy around memory that is
15 // only partially initialized.
16 memset(this, 0, sizeof(*this));
17 }
18
19 MotionData::MotionData(const MotionData& other) = default;
20
21 } // namespace device
OLDNEW
« no previous file with comments | « device/sensors/public/cpp/motion_data.h ('k') | device/sensors/public/cpp/orientation_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698