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

Side by Side Diff: cc/debug/frame_timing_request.h

Issue 884243004: cc: Record frame timing composite events in the tracker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | cc/trees/layer_tree_host_impl.h » ('j') | cc/trees/layer_tree_host_impl.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 CC_DEBUG_FRAME_TIMING_REQUEST_H_ 5 #ifndef CC_DEBUG_FRAME_TIMING_REQUEST_H_
6 #define CC_DEBUG_FRAME_TIMING_REQUEST_H_ 6 #define CC_DEBUG_FRAME_TIMING_REQUEST_H_
7 7
8 #include "ui/gfx/geometry/rect.h" 8 #include "ui/gfx/geometry/rect.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 // This class represents a request to record frame timing information about the 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 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 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. 15 // FrameTimingTracker, which in turn can be consumed by the requester.
16 class FrameTimingRequest { 16 class FrameTimingRequest {
17 public: 17 public:
18 FrameTimingRequest(); 18 FrameTimingRequest();
19 FrameTimingRequest(int64_t request_id, const gfx::Rect& rect); 19 FrameTimingRequest(int64_t request_id, const gfx::Rect& rect);
20 20
21 // Return the ID for the request.
21 int64_t id() const { return id_; } 22 int64_t id() const { return id_; }
23
24 // Return the layer space rect for this request.
22 const gfx::Rect& rect() const { return rect_; } 25 const gfx::Rect& rect() const { return rect_; }
23 26
24 private: 27 private:
25 int64_t id_; 28 int64_t id_;
26 gfx::Rect rect_; 29 gfx::Rect rect_;
27 }; 30 };
28 31
29 } // namespace cc 32 } // namespace cc
30 33
31 #endif // CC_DEBUG_FRAME_TIMING_REQUEST_H_ 34 #endif // CC_DEBUG_FRAME_TIMING_REQUEST_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.h » ('j') | cc/trees/layer_tree_host_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698