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

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

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 #ifndef CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_SURFACE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_SURFACE_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_SURFACE_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_SURFACE_IMPL_H_
7 7
8 #include "cc/surfaces/surface_id.h" 8 #include "cc/surfaces/surface_id.h"
9 #include "cc/surfaces/surface_id_allocator.h" 9 #include "cc/surfaces/surface_id_allocator.h"
10 #include "mojo/public/cpp/bindings/interface_request.h" 10 #include "mojo/public/cpp/bindings/interface_request.h"
(...skipping 15 matching lines...) Expand all
26 blink::mojom::OffscreenCanvasSurfaceRequest request); 26 blink::mojom::OffscreenCanvasSurfaceRequest request);
27 27
28 void OnSurfaceCreated(const cc::SurfaceInfo& surface_info); 28 void OnSurfaceCreated(const cc::SurfaceInfo& surface_info);
29 29
30 // blink::mojom::OffscreenCanvasSurface implementation. 30 // blink::mojom::OffscreenCanvasSurface implementation.
31 void Require(const cc::SurfaceId& surface_id, 31 void Require(const cc::SurfaceId& surface_id,
32 const cc::SurfaceSequence& sequence) override; 32 const cc::SurfaceSequence& sequence) override;
33 void Satisfy(const cc::SurfaceSequence& sequence) override; 33 void Satisfy(const cc::SurfaceSequence& sequence) override;
34 34
35 const cc::FrameSinkId& frame_sink_id() const { return frame_sink_id_; } 35 const cc::FrameSinkId& frame_sink_id() const { return frame_sink_id_; }
36 const cc::LocalFrameId& current_local_frame_id() const { 36 const cc::LocalSurfaceId& current_local_surface_id() const {
37 return current_local_frame_id_; 37 return current_local_surface_id_;
38 } 38 }
39 39
40 private: 40 private:
41 blink::mojom::OffscreenCanvasSurfaceClientPtr client_; 41 blink::mojom::OffscreenCanvasSurfaceClientPtr client_;
42 mojo::StrongBindingPtr<blink::mojom::OffscreenCanvasSurface> binding_; 42 mojo::StrongBindingPtr<blink::mojom::OffscreenCanvasSurface> binding_;
43 43
44 // Surface-related state 44 // Surface-related state
45 cc::FrameSinkId frame_sink_id_; 45 cc::FrameSinkId frame_sink_id_;
46 cc::LocalFrameId current_local_frame_id_; 46 cc::LocalSurfaceId current_local_surface_id_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasSurfaceImpl); 48 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasSurfaceImpl);
49 }; 49 };
50 50
51 } // namespace content 51 } // namespace content
52 52
53 #endif // CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_SURFACE_IMPL_H_ 53 #endif // CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_SURFACE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698