Replicate sandbox flags for OOPIF (Chromium part 2).
[chromium-blink-merge.git] / cc / debug / frame_timing_request.h
blob7ab97def0ab49a4e04991a4957b8beef3075a9f7
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.
5 #ifndef CC_DEBUG_FRAME_TIMING_REQUEST_H_
6 #define CC_DEBUG_FRAME_TIMING_REQUEST_H_
8 #include "ui/gfx/geometry/rect.h"
10 namespace cc {
12 // This class represents a request to record frame timing information about the
13 // given rect (in layer space) and an associated request id. When this request
14 // is propagated to the active LayerImpl, it will cause events to be saved in
15 // FrameTimingTracker, which in turn can be consumed by the requester.
16 class FrameTimingRequest {
17 public:
18 FrameTimingRequest();
19 FrameTimingRequest(int64_t request_id, const gfx::Rect& rect);
21 int64_t id() const { return id_; }
22 const gfx::Rect& rect() const { return rect_; }
24 private:
25 int64_t id_;
26 gfx::Rect rect_;
29 } // namespace cc
31 #endif // CC_DEBUG_FRAME_TIMING_REQUEST_H_