| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 static SynchronousCompositorImpl* FromID(int process_id, int routing_id); | 41 static SynchronousCompositorImpl* FromID(int process_id, int routing_id); |
| 42 // When handling upcalls from renderer code, use this version; the process id | 42 // When handling upcalls from renderer code, use this version; the process id |
| 43 // is implicitly that of the in-process renderer. | 43 // is implicitly that of the in-process renderer. |
| 44 static SynchronousCompositorImpl* FromRoutingID(int routing_id); | 44 static SynchronousCompositorImpl* FromRoutingID(int routing_id); |
| 45 | 45 |
| 46 InputEventAckState HandleInputEvent(const blink::WebInputEvent& input_event); | 46 InputEventAckState HandleInputEvent(const blink::WebInputEvent& input_event); |
| 47 | 47 |
| 48 // SynchronousCompositor | 48 // SynchronousCompositor |
| 49 virtual void SetClient(SynchronousCompositorClient* compositor_client) | 49 virtual void SetClient(SynchronousCompositorClient* compositor_client) |
| 50 OVERRIDE; | 50 OVERRIDE; |
| 51 virtual bool InitializeHwDraw( | 51 virtual bool InitializeHwDraw() OVERRIDE; |
| 52 scoped_refptr<gfx::GLSurface> surface) OVERRIDE; | |
| 53 virtual void ReleaseHwDraw() OVERRIDE; | 52 virtual void ReleaseHwDraw() OVERRIDE; |
| 54 virtual gpu::GLInProcessContext* GetShareContext() OVERRIDE; | 53 virtual gpu::GLInProcessContext* GetShareContext() OVERRIDE; |
| 55 virtual scoped_ptr<cc::CompositorFrame> DemandDrawHw( | 54 virtual scoped_ptr<cc::CompositorFrame> DemandDrawHw( |
| 56 gfx::Size surface_size, | 55 gfx::Size surface_size, |
| 57 const gfx::Transform& transform, | 56 const gfx::Transform& transform, |
| 58 gfx::Rect viewport, | 57 gfx::Rect viewport, |
| 59 gfx::Rect clip, | 58 gfx::Rect clip) OVERRIDE; |
| 60 bool stencil_enabled) OVERRIDE; | |
| 61 virtual bool DemandDrawSw(SkCanvas* canvas) OVERRIDE; | 59 virtual bool DemandDrawSw(SkCanvas* canvas) OVERRIDE; |
| 62 virtual void ReturnResources( | 60 virtual void ReturnResources( |
| 63 const cc::CompositorFrameAck& frame_ack) OVERRIDE; | 61 const cc::CompositorFrameAck& frame_ack) OVERRIDE; |
| 64 virtual void SetMemoryPolicy( | 62 virtual void SetMemoryPolicy( |
| 65 const SynchronousCompositorMemoryPolicy& policy) OVERRIDE; | 63 const SynchronousCompositorMemoryPolicy& policy) OVERRIDE; |
| 66 virtual void DidChangeRootLayerScrollOffset() OVERRIDE; | 64 virtual void DidChangeRootLayerScrollOffset() OVERRIDE; |
| 67 | 65 |
| 68 // SynchronousCompositorOutputSurfaceDelegate | 66 // SynchronousCompositorOutputSurfaceDelegate |
| 69 virtual void DidBindOutputSurface( | 67 virtual void DidBindOutputSurface( |
| 70 SynchronousCompositorOutputSurface* output_surface) OVERRIDE; | 68 SynchronousCompositorOutputSurface* output_surface) OVERRIDE; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 101 cc::InputHandler* input_handler_; | 99 cc::InputHandler* input_handler_; |
| 102 | 100 |
| 103 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_; | 101 base::WeakPtrFactory<SynchronousCompositorImpl> weak_ptr_factory_; |
| 104 | 102 |
| 105 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); | 103 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); |
| 106 }; | 104 }; |
| 107 | 105 |
| 108 } // namespace content | 106 } // namespace content |
| 109 | 107 |
| 110 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ | 108 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ |
| OLD | NEW |