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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698