| OLD | NEW |
| 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" |
| 11 #include "mojo/public/cpp/bindings/string.h" | |
| 12 #include "mojo/public/cpp/bindings/strong_binding.h" | 11 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 13 #include "third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_c
anvas_surface.mojom.h" | 12 #include "third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_c
anvas_surface.mojom.h" |
| 14 | 13 |
| 15 namespace content { | 14 namespace content { |
| 16 | 15 |
| 17 class CONTENT_EXPORT OffscreenCanvasSurfaceImpl | 16 class CONTENT_EXPORT OffscreenCanvasSurfaceImpl |
| 18 : public blink::mojom::OffscreenCanvasSurface { | 17 : public blink::mojom::OffscreenCanvasSurface { |
| 19 public: | 18 public: |
| 20 OffscreenCanvasSurfaceImpl( | 19 OffscreenCanvasSurfaceImpl( |
| 21 const cc::FrameSinkId& frame_sink_id, | 20 const cc::FrameSinkId& frame_sink_id, |
| (...skipping 25 matching lines...) Expand all Loading... |
| 47 // Surface-related state | 46 // Surface-related state |
| 48 cc::FrameSinkId frame_sink_id_; | 47 cc::FrameSinkId frame_sink_id_; |
| 49 cc::LocalFrameId current_local_frame_id_; | 48 cc::LocalFrameId current_local_frame_id_; |
| 50 | 49 |
| 51 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasSurfaceImpl); | 50 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasSurfaceImpl); |
| 52 }; | 51 }; |
| 53 | 52 |
| 54 } // namespace content | 53 } // namespace content |
| 55 | 54 |
| 56 #endif // CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_SURFACE_IMPL_H_ | 55 #endif // CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_SURFACE_IMPL_H_ |
| OLD | NEW |