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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 2382873002: Replace usage of SurfaceId's client_id with FrameSinkId (Closed)
Patch Set: Rebased Created 4 years, 2 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 | « components/exo/surface.cc ('k') | content/browser/compositor/gpu_process_transport_factory.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 #include "content/browser/browser_plugin/browser_plugin_guest.h" 5 #include "content/browser/browser_plugin/browser_plugin_guest.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 browser_plugin_instance_id(), surface_id, frame_size, scale_factor, 407 browser_plugin_instance_id(), surface_id, frame_size, scale_factor,
408 sequence)); 408 sequence));
409 } 409 }
410 410
411 void BrowserPluginGuest::OnSatisfySequence( 411 void BrowserPluginGuest::OnSatisfySequence(
412 int instance_id, 412 int instance_id,
413 const cc::SurfaceSequence& sequence) { 413 const cc::SurfaceSequence& sequence) {
414 std::vector<uint32_t> sequences; 414 std::vector<uint32_t> sequences;
415 sequences.push_back(sequence.sequence); 415 sequences.push_back(sequence.sequence);
416 cc::SurfaceManager* manager = GetSurfaceManager(); 416 cc::SurfaceManager* manager = GetSurfaceManager();
417 manager->DidSatisfySequences(sequence.client_id, &sequences); 417 manager->DidSatisfySequences(sequence.frame_sink_id, &sequences);
418 } 418 }
419 419
420 void BrowserPluginGuest::OnRequireSequence( 420 void BrowserPluginGuest::OnRequireSequence(
421 int instance_id, 421 int instance_id,
422 const cc::SurfaceId& id, 422 const cc::SurfaceId& id,
423 const cc::SurfaceSequence& sequence) { 423 const cc::SurfaceSequence& sequence) {
424 cc::SurfaceManager* manager = GetSurfaceManager(); 424 cc::SurfaceManager* manager = GetSurfaceManager();
425 cc::Surface* surface = manager->GetSurfaceForId(id); 425 cc::Surface* surface = manager->GetSurfaceForId(id);
426 if (!surface) { 426 if (!surface) {
427 LOG(ERROR) << "Attempting to require callback on nonexistent surface"; 427 LOG(ERROR) << "Attempting to require callback on nonexistent surface";
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 range, character_bounds); 1026 range, character_bounds);
1027 } 1027 }
1028 #endif 1028 #endif
1029 1029
1030 void BrowserPluginGuest::SetContextMenuPosition(const gfx::Point& position) { 1030 void BrowserPluginGuest::SetContextMenuPosition(const gfx::Point& position) {
1031 if (delegate_) 1031 if (delegate_)
1032 delegate_->SetContextMenuPosition(position); 1032 delegate_->SetContextMenuPosition(position);
1033 } 1033 }
1034 1034
1035 } // namespace content 1035 } // namespace content
OLDNEW
« no previous file with comments | « components/exo/surface.cc ('k') | content/browser/compositor/gpu_process_transport_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698