| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COMPOSITOR_OUTPUT_SURFACE_H_ | 5 #ifndef CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ |
| 6 #define CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ | 6 #define CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "base/threading/non_thread_safe.h" | 16 #include "base/threading/non_thread_safe.h" |
| 17 #include "base/threading/platform_thread.h" | 17 #include "base/threading/platform_thread.h" |
| 18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
| 20 #include "cc/output/begin_frame_args.h" | 20 #include "cc/output/begin_frame_args.h" |
| 21 #include "cc/output/output_surface.h" | 21 #include "cc/output/output_surface.h" |
| 22 #include "cc/surfaces/surface_id_allocator.h" |
| 22 #include "content/renderer/gpu/compositor_forwarding_message_filter.h" | 23 #include "content/renderer/gpu/compositor_forwarding_message_filter.h" |
| 23 #include "ipc/ipc_sync_message_filter.h" | 24 #include "ipc/ipc_sync_message_filter.h" |
| 24 | 25 |
| 25 namespace IPC { | 26 namespace IPC { |
| 26 class Message; | 27 class Message; |
| 27 } | 28 } |
| 28 | 29 |
| 29 namespace cc { | 30 namespace cc { |
| 30 class CompositorFrame; | 31 class CompositorFrame; |
| 31 class CompositorFrameAck; | 32 class CompositorFrameAck; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 void OnReclaimCompositorResources(uint32_t output_surface_id, | 92 void OnReclaimCompositorResources(uint32_t output_surface_id, |
| 92 bool is_swap_ack, | 93 bool is_swap_ack, |
| 93 const cc::ReturnedResourceArray& resources); | 94 const cc::ReturnedResourceArray& resources); |
| 94 bool Send(IPC::Message* message); | 95 bool Send(IPC::Message* message); |
| 95 | 96 |
| 96 scoped_refptr<CompositorForwardingMessageFilter> output_surface_filter_; | 97 scoped_refptr<CompositorForwardingMessageFilter> output_surface_filter_; |
| 97 CompositorForwardingMessageFilter::Handler output_surface_filter_handler_; | 98 CompositorForwardingMessageFilter::Handler output_surface_filter_handler_; |
| 98 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; | 99 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; |
| 99 scoped_refptr<IPC::SyncMessageFilter> message_sender_; | 100 scoped_refptr<IPC::SyncMessageFilter> message_sender_; |
| 100 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; | 101 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; |
| 102 cc::SurfaceIdAllocator allocator_; |
| 103 cc::SurfaceId surface_id_; |
| 104 gfx::Size current_surface_size_; |
| 105 gfx::Size current_surface_size_in_dip_; |
| 106 float current_scale_factor_; |
| 101 int routing_id_; | 107 int routing_id_; |
| 102 }; | 108 }; |
| 103 | 109 |
| 104 } // namespace content | 110 } // namespace content |
| 105 | 111 |
| 106 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ | 112 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ |
| OLD | NEW |