summaryrefslogtreecommitdiffstats
path: root/remoting/capturer/mouse_cursor_shape.h
blob: 136728a712a5c9208068c03a76c726e61cb196a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// 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.

#ifndef REMOTING_CAPTURER_MOUSE_CURSOR_SHAPE_H_
#define REMOTING_CAPTURER_MOUSE_CURSOR_SHAPE_H_

#include <string>

#include "third_party/skia/include/core/SkPoint.h"
#include "third_party/skia/include/core/SkRect.h"
#include "third_party/skia/include/core/SkSize.h"

namespace remoting {

// Type used to return mouse cursor shape from video capturers.
struct MouseCursorShape {
  MouseCursorShape();
  ~MouseCursorShape();

  // Size of the cursor in screen pixels.
  SkISize size;

  // Coordinates of the cursor hotspot relative to upper-left corner.
  SkIPoint hotspot;

  // Cursor pixmap data in 32-bit BGRA format.
  std::string data;
};

}  // namespace remoting

#endif  // REMOTING_CAPTURER_MOUSE_CURSOR_SHAPE_H_