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

Side by Side Diff: cc/layers/layer_impl.cc

Issue 914403003: cc: Add main frame timing info to frame timing tracker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 years, 9 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "cc/layers/layer_impl.h" 5 #include "cc/layers/layer_impl.h"
6 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "base/trace_event/trace_event_argument.h" 10 #include "base/trace_event/trace_event_argument.h"
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after
1037 NoteLayerPropertyChangedForSubtree(); 1037 NoteLayerPropertyChangedForSubtree();
1038 } 1038 }
1039 1039
1040 void LayerImpl::PassFrameTimingRequests( 1040 void LayerImpl::PassFrameTimingRequests(
1041 std::vector<FrameTimingRequest>* requests) { 1041 std::vector<FrameTimingRequest>* requests) {
1042 frame_timing_requests_.swap(*requests); 1042 frame_timing_requests_.swap(*requests);
1043 frame_timing_requests_dirty_ = true; 1043 frame_timing_requests_dirty_ = true;
1044 SetNeedsPushProperties(); 1044 SetNeedsPushProperties();
1045 } 1045 }
1046 1046
1047 void LayerImpl::GatherFrameTimingRequestIds(std::vector<int64_t>* request_ids) {
1048 for (const auto& request : frame_timing_requests_)
1049 request_ids->push_back(request.id());
1050 }
1051
1047 void LayerImpl::SetTransform(const gfx::Transform& transform) { 1052 void LayerImpl::SetTransform(const gfx::Transform& transform) {
1048 if (transform_ == transform) 1053 if (transform_ == transform)
1049 return; 1054 return;
1050 1055
1051 transform_ = transform; 1056 transform_ = transform;
1052 transform_is_invertible_ = transform_.IsInvertible(); 1057 transform_is_invertible_ = transform_.IsInvertible();
1053 NoteLayerPropertyChangedForSubtree(); 1058 NoteLayerPropertyChangedForSubtree();
1054 } 1059 }
1055 1060
1056 void LayerImpl::SetTransformAndInvertibility(const gfx::Transform& transform, 1061 void LayerImpl::SetTransformAndInvertibility(const gfx::Transform& transform,
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
1588 return; 1593 return;
1589 } 1594 }
1590 render_surface_.reset(); 1595 render_surface_.reset();
1591 } 1596 }
1592 1597
1593 Region LayerImpl::GetInvalidationRegion() { 1598 Region LayerImpl::GetInvalidationRegion() {
1594 return Region(update_rect_); 1599 return Region(update_rect_);
1595 } 1600 }
1596 1601
1597 } // namespace cc 1602 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/scheduler/scheduler.h » ('j') | cc/scheduler/scheduler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698