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

Unified Diff: remoting/base/cursor_shape_data.cc

Issue 10382184: [Chromoting] Initial plumbing for cursor shape. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extra LOGs Created 8 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698