OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "remoting/base/cursor_shape_data.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 |
| 9 namespace remoting { |
| 10 |
| 11 CursorShapeData::CursorShapeData() |
| 12 : bytes_per_pixel_(0) { |
| 13 } |
| 14 |
| 15 CursorShapeData::~CursorShapeData() { |
| 16 } |
| 17 |
| 18 void CursorShapeData::Initialize(scoped_array<uint8> data, const SkISize& size, |
| 19 const SkISize& hotspot, |
| 20 const int bytes_per_pixel) { |
| 21 data_.reset(data.release()); |
| 22 size_ = size; |
| 23 hotspot_ = hotspot; |
| 24 bytes_per_pixel_ = bytes_per_pixel; |
| 25 } |
| 26 |
| 27 } // namespace remoting |
OLD | NEW |