OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 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 CC_DEBUG_FRAME_TIMING_REQUEST_H_ | |
6 #define CC_DEBUG_FRAME_TIMING_REQUEST_H_ | |
7 | |
8 #include "ui/gfx/geometry/rect.h" | |
9 | |
10 namespace cc { | |
11 | |
12 // This class represents a request from Blink to record frame timing information | |
danakj
2015/01/23 19:40:18
nit: Mentioning Blink is a layering violation, but
vmpstr
2015/01/23 21:01:13
Done.
| |
13 // about the given rect (in layer space) and an associated request id. When | |
14 // this request is propagated to the active LayerImpl, it will cause events to | |
15 // be saved in FrameTimingTracker, which in turn will be consumed by Blink. | |
16 class FrameTimingRequest { | |
17 public: | |
18 FrameTimingRequest(); | |
19 FrameTimingRequest(int64_t request_id, const gfx::Rect& rect); | |
20 | |
21 int64_t id() const { return id_; } | |
22 const gfx::Rect& rect() const { return rect_; } | |
23 | |
24 private: | |
25 int64_t id_; | |
26 gfx::Rect rect_; | |
27 }; | |
28 | |
29 } // namespace cc | |
30 | |
31 #endif // CC_DEBUG_FRAME_TIMING_REQUEST_H_ | |
OLD | NEW |