| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_GPU_DELEGATED_COMPOSITOR_OUTPUT_SURFACE_H_ | 5 #ifndef CONTENT_RENDERER_GPU_DELEGATED_COMPOSITOR_OUTPUT_SURFACE_H_ |
| 6 #define CONTENT_RENDERER_GPU_DELEGATED_COMPOSITOR_OUTPUT_SURFACE_H_ | 6 #define CONTENT_RENDERER_GPU_DELEGATED_COMPOSITOR_OUTPUT_SURFACE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 9 #include "content/renderer/gpu/compositor_output_surface.h" | 11 #include "content/renderer/gpu/compositor_output_surface.h" |
| 10 | 12 |
| 11 namespace content { | 13 namespace content { |
| 12 class FrameSwapMessageQueue; | 14 class FrameSwapMessageQueue; |
| 13 | 15 |
| 14 class DelegatedCompositorOutputSurface : public CompositorOutputSurface { | 16 class DelegatedCompositorOutputSurface : public CompositorOutputSurface { |
| 15 public: | 17 public: |
| 16 DelegatedCompositorOutputSurface( | 18 DelegatedCompositorOutputSurface( |
| 17 int32 routing_id, | 19 int32_t routing_id, |
| 18 uint32 output_surface_id, | 20 uint32_t output_surface_id, |
| 19 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, | 21 const scoped_refptr<ContextProviderCommandBuffer>& context_provider, |
| 20 const scoped_refptr<ContextProviderCommandBuffer>& | 22 const scoped_refptr<ContextProviderCommandBuffer>& |
| 21 worker_context_provider, | 23 worker_context_provider, |
| 22 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue); | 24 scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue); |
| 23 ~DelegatedCompositorOutputSurface() override {} | 25 ~DelegatedCompositorOutputSurface() override {} |
| 24 }; | 26 }; |
| 25 | 27 |
| 26 } // namespace content | 28 } // namespace content |
| 27 | 29 |
| 28 #endif // CONTENT_RENDERER_GPU_DELEGATED_COMPOSITOR_OUTPUT_SURFACE_H_ | 30 #endif // CONTENT_RENDERER_GPU_DELEGATED_COMPOSITOR_OUTPUT_SURFACE_H_ |
| OLD | NEW |