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

Side by Side Diff: remoting/test/frame_generator_util.h

Issue 2182833002: Add scroll perf test for protocol in chromoting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gyp Created 4 years, 4 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
« no previous file with comments | « remoting/test/cyclic_frame_generator.cc ('k') | remoting/test/frame_generator_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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 #ifndef REMOTING_TEST_FRAME_GENERATOR_UTIL_H_
6 #define REMOTING_TEST_FRAME_GENERATOR_UTIL_H_
7
8 #include <memory>
9
10 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
11
12 namespace webrtc {
13 class DesktopFrame;
14 } // namespace webrtc
15
16 namespace remoting {
17 namespace test {
18
19 // Loads test image from remoting/test/data.
20 std::unique_ptr<webrtc::DesktopFrame> LoadDesktopFrameFromPng(const char* name);
21
22 // Draws rectangle filled with the given |color|.
23 void DrawRect(webrtc::DesktopFrame* frame,
24 webrtc::DesktopRect rect,
25 uint32_t color);
26
27 // Draws barcode that encodes |value| on the |frame|. If |changed| is true then
28 // frame->updated_region() will be updated as well.
29 void DrawBarcode(int value, bool changed, webrtc::DesktopFrame* frame);
30
31 // Reads barcode from the frame.
32 int ReadBarcode(const webrtc::DesktopFrame& frame);
33
34 } // namespace test
35 } // namespace remoting
36
37 #endif // REMOTING_TEST_FRAME_GENERATOR_UTIL_H_
OLDNEW
« no previous file with comments | « remoting/test/cyclic_frame_generator.cc ('k') | remoting/test/frame_generator_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698