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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 base::TaskRunner* target_task_runner); | 43 base::TaskRunner* target_task_runner); |
44 | 44 |
45 CompositorOutputSurface(int32 routing_id, | 45 CompositorOutputSurface(int32 routing_id, |
46 WebGraphicsContext3DCommandBufferImpl* context3d, | 46 WebGraphicsContext3DCommandBufferImpl* context3d, |
47 cc::SoftwareOutputDevice* software); | 47 cc::SoftwareOutputDevice* software); |
48 virtual ~CompositorOutputSurface(); | 48 virtual ~CompositorOutputSurface(); |
49 | 49 |
50 // cc::OutputSurface implementation. | 50 // cc::OutputSurface implementation. |
51 virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE; | 51 virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE; |
52 virtual void SendFrameToParentCompositor(cc::CompositorFrame*) OVERRIDE; | 52 virtual void SendFrameToParentCompositor(cc::CompositorFrame*) OVERRIDE; |
53 virtual void PostSubBuffer(gfx::Rect rect, const cc::LatencyInfo&) OVERRIDE; | 53 virtual void PostSubBuffer(gfx::Rect rect, const ui::LatencyInfo&) OVERRIDE; |
54 virtual void SwapBuffers(const cc::LatencyInfo&) OVERRIDE; | 54 virtual void SwapBuffers(const ui::LatencyInfo&) OVERRIDE; |
55 #if defined(OS_ANDROID) | 55 #if defined(OS_ANDROID) |
56 virtual void SetNeedsBeginFrame(bool enable) OVERRIDE; | 56 virtual void SetNeedsBeginFrame(bool enable) OVERRIDE; |
57 #endif | 57 #endif |
58 | 58 |
59 // TODO(epenner): This seems out of place here and would be a better fit | 59 // TODO(epenner): This seems out of place here and would be a better fit |
60 // int CompositorThread after it is fully refactored (http://crbug/170828) | 60 // int CompositorThread after it is fully refactored (http://crbug/170828) |
61 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) OVERRIDE; | 61 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) OVERRIDE; |
62 | 62 |
63 protected: | 63 protected: |
64 virtual void OnSwapAck(const cc::CompositorFrameAck& ack); | 64 virtual void OnSwapAck(const cc::CompositorFrameAck& ack); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; | 96 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; |
97 scoped_refptr<IPC::SyncMessageFilter> message_sender_; | 97 scoped_refptr<IPC::SyncMessageFilter> message_sender_; |
98 int routing_id_; | 98 int routing_id_; |
99 bool prefers_smoothness_; | 99 bool prefers_smoothness_; |
100 base::PlatformThreadHandle main_thread_handle_; | 100 base::PlatformThreadHandle main_thread_handle_; |
101 }; | 101 }; |
102 | 102 |
103 } // namespace content | 103 } // namespace content |
104 | 104 |
105 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ | 105 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ |
OLD | NEW |