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

Side by Side Diff: remoting/base/util.h

Issue 2148743005: [Remoting Android] Cursor & Cursor Feedback for OpenGL Renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move parameters around Created 4 years, 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_BASE_UTIL_H_ 5 #ifndef REMOTING_BASE_UTIL_H_
6 #define REMOTING_BASE_UTIL_H_ 6 #define REMOTING_BASE_UTIL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <string> 10 #include <string>
11 11
12 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" 12 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
13 13
14 namespace remoting { 14 namespace remoting {
15 15
16 enum { kBytesPerPixelRGB32 = 4 };
Sergey Ulanov 2016/07/20 23:51:39 I'd like to avoid using util.h in new code. Maybe
17
16 // Return a string that contains the current date formatted as 'MMDD/HHMMSS:'. 18 // Return a string that contains the current date formatted as 'MMDD/HHMMSS:'.
17 std::string GetTimestampString(); 19 std::string GetTimestampString();
18 20
19 int RoundToTwosMultiple(int x); 21 int RoundToTwosMultiple(int x);
20 22
21 // Align the sides of the rectangle to multiples of 2 (expanding outwards). 23 // Align the sides of the rectangle to multiples of 2 (expanding outwards).
22 webrtc::DesktopRect AlignRect(const webrtc::DesktopRect& rect); 24 webrtc::DesktopRect AlignRect(const webrtc::DesktopRect& rect);
23 25
24 // Copy content of a rectangle in a RGB32 image. 26 // Copy content of a rectangle in a RGB32 image.
25 void CopyRGB32Rect(const uint8_t* source_buffer, 27 void CopyRGB32Rect(const uint8_t* source_buffer,
(...skipping 12 matching lines...) Expand all
38 40
39 // Checks if the given string is a valid UTF-8 string. 41 // Checks if the given string is a valid UTF-8 string.
40 bool StringIsUtf8(const char* data, size_t length); 42 bool StringIsUtf8(const char* data, size_t length);
41 43
42 bool DoesRectContain(const webrtc::DesktopRect& a, 44 bool DoesRectContain(const webrtc::DesktopRect& a,
43 const webrtc::DesktopRect& b); 45 const webrtc::DesktopRect& b);
44 46
45 } // namespace remoting 47 } // namespace remoting
46 48
47 #endif // REMOTING_BASE_UTIL_H_ 49 #endif // REMOTING_BASE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698