Index: remoting/base/cursor_shape_data.cc |
diff --git a/remoting/base/cursor_shape_data.cc b/remoting/base/cursor_shape_data.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..78394e0dad3473e66e2c8263baffbdaa78545d59 |
--- /dev/null |
+++ b/remoting/base/cursor_shape_data.cc |
@@ -0,0 +1,27 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "remoting/base/cursor_shape_data.h" |
+ |
+#include "base/logging.h" |
+ |
+namespace remoting { |
+ |
+CursorShapeData::CursorShapeData() |
+ : bytes_per_pixel_(0) { |
+} |
+ |
+CursorShapeData::~CursorShapeData() { |
+} |
+ |
+void CursorShapeData::Initialize(scoped_array<uint8> data, const SkISize& size, |
+ const SkISize& hotspot, |
+ const int bytes_per_pixel) { |
+ data_.reset(data.release()); |
+ size_ = size; |
+ hotspot_ = hotspot; |
+ bytes_per_pixel_ = bytes_per_pixel; |
+} |
+ |
+} // namespace remoting |