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

Side by Side Diff: cc/output/compositor_frame_metadata.h

Issue 2731283003: (Reland) Discard compositor frames from unloaded web content (Closed)
Patch Set: Initialize field to zero Created 3 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
« no previous file with comments | « cc/ipc/struct_traits_unittest.cc ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ 5 #ifndef CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_
6 #define CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ 6 #define CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 std::vector<ui::LatencyInfo> latency_info; 76 std::vector<ui::LatencyInfo> latency_info;
77 77
78 // This is the set of Surfaces that are referenced by this frame. 78 // This is the set of Surfaces that are referenced by this frame.
79 std::vector<SurfaceId> referenced_surfaces; 79 std::vector<SurfaceId> referenced_surfaces;
80 80
81 // This indicates whether this CompositorFrame can be activated before 81 // This indicates whether this CompositorFrame can be activated before
82 // dependencies have been resolved. 82 // dependencies have been resolved.
83 bool can_activate_before_dependencies = true; 83 bool can_activate_before_dependencies = true;
84 84
85 // This is a value that allows the browser to associate compositor frames
86 // with the content that they represent -- typically top-level page loads.
87 // TODO(kenrb, fsamuel): This should eventually by SurfaceID, when they
88 // become available in all renderer processes. See https://crbug.com/695579.
89 uint32_t content_source_id = 0;
90
85 private: 91 private:
86 CompositorFrameMetadata(const CompositorFrameMetadata& other); 92 CompositorFrameMetadata(const CompositorFrameMetadata& other);
87 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete; 93 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete;
88 }; 94 };
89 95
90 } // namespace cc 96 } // namespace cc
91 97
92 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ 98 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_
OLDNEW
« no previous file with comments | « cc/ipc/struct_traits_unittest.cc ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698