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

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

Issue 924973003: CC: Force push properties for all layers when tracing is started (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introduce Layer::DidBeginTracing(), call SetNeedsPushProperties() from there 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
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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.h" 5 #include "cc/layers/layer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/atomic_sequence_num.h" 9 #include "base/atomic_sequence_num.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 return draw_opacity; 1342 return draw_opacity;
1343 } 1343 }
1344 1344
1345 void Layer::SetFrameTimingRequests( 1345 void Layer::SetFrameTimingRequests(
1346 const std::vector<FrameTimingRequest>& requests) { 1346 const std::vector<FrameTimingRequest>& requests) {
1347 frame_timing_requests_ = requests; 1347 frame_timing_requests_ = requests;
1348 frame_timing_requests_dirty_ = true; 1348 frame_timing_requests_dirty_ = true;
1349 SetNeedsCommit(); 1349 SetNeedsCommit();
1350 } 1350 }
1351 1351
1352 void Layer::DidBeginTracing() {
1353 SetNeedsPushProperties();
danakj 2015/03/06 18:50:12 Can you leave a comment explaining why we do SNPP(
1354 }
1355
1352 } // namespace cc 1356 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer.h ('k') | cc/trees/layer_tree_host.cc » ('j') | cc/trees/layer_tree_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698