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

Unified Diff: content/browser/frame_host/cross_process_frame_connector.cc

Issue 2614423003: Adding SatisfySequence and RequireSequence to SurfaceManager (Closed)
Patch Set: up Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/cross_process_frame_connector.cc
diff --git a/content/browser/frame_host/cross_process_frame_connector.cc b/content/browser/frame_host/cross_process_frame_connector.cc
index d6fd0f756c171a7556cf56081cb417660731d464..f2289312f020c5c17a95c9a8528c8dee3de94df3 100644
--- a/content/browser/frame_host/cross_process_frame_connector.cc
+++ b/content/browser/frame_host/cross_process_frame_connector.cc
@@ -98,22 +98,13 @@ void CrossProcessFrameConnector::SetChildFrameSurface(
void CrossProcessFrameConnector::OnSatisfySequence(
const cc::SurfaceSequence& sequence) {
- std::vector<uint32_t> sequences;
- sequences.push_back(sequence.sequence);
- cc::SurfaceManager* manager = GetSurfaceManager();
- manager->DidSatisfySequences(sequence.frame_sink_id, &sequences);
+ GetSurfaceManager()->SatisfySequence(sequence);
}
void CrossProcessFrameConnector::OnRequireSequence(
const cc::SurfaceId& id,
const cc::SurfaceSequence& sequence) {
- cc::SurfaceManager* manager = GetSurfaceManager();
- cc::Surface* surface = manager->GetSurfaceForId(id);
- if (!surface) {
- LOG(ERROR) << "Attempting to require callback on nonexistent surface";
- return;
- }
- surface->AddDestructionDependency(sequence);
+ GetSurfaceManager()->RequireSequence(id, sequence);
}
gfx::Rect CrossProcessFrameConnector::ChildFrameRect() {

Powered by Google App Engine
This is Rietveld 408576698