| 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_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ | 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // is implicitly that of the in-process renderer. | 46 // is implicitly that of the in-process renderer. |
| 47 static SynchronousCompositorImpl* FromRoutingID(int routing_id); | 47 static SynchronousCompositorImpl* FromRoutingID(int routing_id); |
| 48 | 48 |
| 49 InputEventAckState HandleInputEvent(const blink::WebInputEvent& input_event); | 49 InputEventAckState HandleInputEvent(const blink::WebInputEvent& input_event); |
| 50 | 50 |
| 51 // SynchronousCompositor | 51 // SynchronousCompositor |
| 52 virtual void SetClient(SynchronousCompositorClient* compositor_client) | 52 virtual void SetClient(SynchronousCompositorClient* compositor_client) |
| 53 OVERRIDE; | 53 OVERRIDE; |
| 54 virtual bool InitializeHwDraw() OVERRIDE; | 54 virtual bool InitializeHwDraw() OVERRIDE; |
| 55 virtual void ReleaseHwDraw() OVERRIDE; | 55 virtual void ReleaseHwDraw() OVERRIDE; |
| 56 virtual gpu::GLInProcessContext* GetShareContext() OVERRIDE; | |
| 57 virtual scoped_ptr<cc::CompositorFrame> DemandDrawHw( | 56 virtual scoped_ptr<cc::CompositorFrame> DemandDrawHw( |
| 58 gfx::Size surface_size, | 57 gfx::Size surface_size, |
| 59 const gfx::Transform& transform, | 58 const gfx::Transform& transform, |
| 60 gfx::Rect viewport, | 59 gfx::Rect viewport, |
| 61 gfx::Rect clip, | 60 gfx::Rect clip, |
| 62 gfx::Rect viewport_rect_for_tile_priority, | 61 gfx::Rect viewport_rect_for_tile_priority, |
| 63 const gfx::Transform& transform_for_tile_priority) OVERRIDE; | 62 const gfx::Transform& transform_for_tile_priority) OVERRIDE; |
| 64 virtual bool DemandDrawSw(SkCanvas* canvas) OVERRIDE; | 63 virtual bool DemandDrawSw(SkCanvas* canvas) OVERRIDE; |
| 65 virtual void ReturnResources( | 64 virtual void ReturnResources( |
| 66 const cc::CompositorFrameAck& frame_ack) OVERRIDE; | 65 const cc::CompositorFrameAck& frame_ack) OVERRIDE; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 cc::InputHandler* input_handler_; | 104 cc::InputHandler* input_handler_; |
| 106 | 105 |
| 107 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_; | 106 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_; |
| 108 | 107 |
| 109 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); | 108 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); |
| 110 }; | 109 }; |
| 111 | 110 |
| 112 } // namespace content | 111 } // namespace content |
| 113 | 112 |
| 114 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ | 113 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ |
| OLD | NEW |