| 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 #include "platform/graphics/CanvasSurfaceLayerBridge.h" | 5 #include "platform/graphics/CanvasSurfaceLayerBridge.h" |
| 6 | 6 |
| 7 #include "cc/layers/layer.h" | 7 #include "cc/layers/layer.h" |
| 8 #include "cc/layers/solid_color_layer.h" | 8 #include "cc/layers/solid_color_layer.h" |
| 9 #include "cc/layers/surface_layer.h" | 9 #include "cc/layers/surface_layer.h" |
| 10 #include "cc/surfaces/sequence_surface_reference_factory.h" | 10 #include "cc/surfaces/sequence_surface_reference_factory.h" |
| 11 #include "cc/surfaces/surface_id.h" | 11 #include "cc/surfaces/surface_id.h" |
| 12 #include "cc/surfaces/surface_info.h" | 12 #include "cc/surfaces/surface_info.h" |
| 13 #include "cc/surfaces/surface_sequence.h" | 13 #include "cc/surfaces/surface_sequence.h" |
| 14 #include "platform/graphics/GraphicsLayer.h" | 14 #include "platform/graphics/GraphicsLayer.h" |
| 15 #include "platform/mojo/MojoHelper.h" | 15 #include "platform/mojo/MojoHelper.h" |
| 16 #include "platform/wtf/Functional.h" |
| 16 #include "public/platform/InterfaceProvider.h" | 17 #include "public/platform/InterfaceProvider.h" |
| 17 #include "public/platform/Platform.h" | 18 #include "public/platform/Platform.h" |
| 18 #include "public/platform/WebCompositorSupport.h" | 19 #include "public/platform/WebCompositorSupport.h" |
| 19 #include "public/platform/WebLayer.h" | 20 #include "public/platform/WebLayer.h" |
| 20 #include "public/platform/WebLayerTreeView.h" | 21 #include "public/platform/WebLayerTreeView.h" |
| 21 #include "public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom
-blink.h" | 22 #include "public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom
-blink.h" |
| 22 #include "ui/gfx/geometry/size.h" | 23 #include "ui/gfx/geometry/size.h" |
| 23 #include "wtf/Functional.h" | |
| 24 | 24 |
| 25 namespace blink { | 25 namespace blink { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 class OffscreenCanvasSurfaceReferenceFactory | 29 class OffscreenCanvasSurfaceReferenceFactory |
| 30 : public cc::SequenceSurfaceReferenceFactory { | 30 : public cc::SequenceSurfaceReferenceFactory { |
| 31 public: | 31 public: |
| 32 OffscreenCanvasSurfaceReferenceFactory( | 32 OffscreenCanvasSurfaceReferenceFactory( |
| 33 base::WeakPtr<CanvasSurfaceLayerBridge> bridge) | 33 base::WeakPtr<CanvasSurfaceLayerBridge> bridge) |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 m_service->Satisfy(sequence); | 126 m_service->Satisfy(sequence); |
| 127 } | 127 } |
| 128 | 128 |
| 129 void CanvasSurfaceLayerBridge::requireCallback( | 129 void CanvasSurfaceLayerBridge::requireCallback( |
| 130 const cc::SurfaceId& surfaceId, | 130 const cc::SurfaceId& surfaceId, |
| 131 const cc::SurfaceSequence& sequence) { | 131 const cc::SurfaceSequence& sequence) { |
| 132 m_service->Require(surfaceId, sequence); | 132 m_service->Require(surfaceId, sequence); |
| 133 } | 133 } |
| 134 | 134 |
| 135 } // namespace blink | 135 } // namespace blink |
| OLD | NEW |