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

Side by Side Diff: content/browser/renderer_host/offscreen_canvas_surface_impl.cc

Issue 2661543002: Rename LocalFrameId to LocalSurfaceId (Closed)
Patch Set: c Created 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/renderer_host/offscreen_canvas_surface_impl.h" 5 #include "content/browser/renderer_host/offscreen_canvas_surface_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 29 matching lines...) Expand all
40 base::MakeUnique<OffscreenCanvasSurfaceImpl>(frame_sink_id, 40 base::MakeUnique<OffscreenCanvasSurfaceImpl>(frame_sink_id,
41 std::move(client)); 41 std::move(client));
42 OffscreenCanvasSurfaceImpl* surface_service = impl.get(); 42 OffscreenCanvasSurfaceImpl* surface_service = impl.get();
43 surface_service->binding_ = 43 surface_service->binding_ =
44 mojo::MakeStrongBinding(std::move(impl), std::move(request)); 44 mojo::MakeStrongBinding(std::move(impl), std::move(request));
45 } 45 }
46 46
47 void OffscreenCanvasSurfaceImpl::OnSurfaceCreated( 47 void OffscreenCanvasSurfaceImpl::OnSurfaceCreated(
48 const cc::SurfaceInfo& surface_info) { 48 const cc::SurfaceInfo& surface_info) {
49 DCHECK_EQ(surface_info.id().frame_sink_id(), frame_sink_id_); 49 DCHECK_EQ(surface_info.id().frame_sink_id(), frame_sink_id_);
50 if (!current_local_frame_id_.is_valid() || 50 if (!current_local_surface_id_.is_valid() ||
51 surface_info.id().local_frame_id() != current_local_frame_id_) { 51 surface_info.id().local_surface_id() != current_local_surface_id_) {
52 current_local_frame_id_ = surface_info.id().local_frame_id(); 52 current_local_surface_id_ = surface_info.id().local_surface_id();
53 if (client_) 53 if (client_)
54 client_->OnSurfaceCreated(surface_info); 54 client_->OnSurfaceCreated(surface_info);
55 } 55 }
56 } 56 }
57 57
58 void OffscreenCanvasSurfaceImpl::Require(const cc::SurfaceId& surface_id, 58 void OffscreenCanvasSurfaceImpl::Require(const cc::SurfaceId& surface_id,
59 const cc::SurfaceSequence& sequence) { 59 const cc::SurfaceSequence& sequence) {
60 GetSurfaceManager()->RequireSequence(surface_id, sequence); 60 GetSurfaceManager()->RequireSequence(surface_id, sequence);
61 } 61 }
62 62
63 void OffscreenCanvasSurfaceImpl::Satisfy(const cc::SurfaceSequence& sequence) { 63 void OffscreenCanvasSurfaceImpl::Satisfy(const cc::SurfaceSequence& sequence) {
64 GetSurfaceManager()->SatisfySequence(sequence); 64 GetSurfaceManager()->SatisfySequence(sequence);
65 } 65 }
66 66
67 } // namespace content 67 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698