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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 InputEventAckState HandleInputEvent(const WebKit::WebInputEvent& input_event); | 46 InputEventAckState HandleInputEvent(const WebKit::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( |
52 scoped_refptr<gfx::GLSurface> surface) OVERRIDE; | 52 scoped_refptr<gfx::GLSurface> surface) OVERRIDE; |
53 virtual void ReleaseHwDraw() OVERRIDE; | 53 virtual void ReleaseHwDraw() OVERRIDE; |
54 virtual bool DemandDrawHw( | 54 virtual bool DemandDrawHw( |
55 gfx::Size view_size, | 55 gfx::Size surface_size, |
56 const gfx::Transform& transform, | 56 const gfx::Transform& transform, |
| 57 gfx::Rect viewport, |
57 gfx::Rect clip, | 58 gfx::Rect clip, |
58 bool stencil_enabled) OVERRIDE; | 59 bool stencil_enabled) OVERRIDE; |
59 virtual bool DemandDrawSw(SkCanvas* canvas) OVERRIDE; | 60 virtual bool DemandDrawSw(SkCanvas* canvas) OVERRIDE; |
60 virtual void DidChangeRootLayerScrollOffset() OVERRIDE; | 61 virtual void DidChangeRootLayerScrollOffset() OVERRIDE; |
61 | 62 |
62 // SynchronousCompositorOutputSurfaceDelegate | 63 // SynchronousCompositorOutputSurfaceDelegate |
63 virtual void DidBindOutputSurface( | 64 virtual void DidBindOutputSurface( |
64 SynchronousCompositorOutputSurface* output_surface) OVERRIDE; | 65 SynchronousCompositorOutputSurface* output_surface) OVERRIDE; |
65 virtual void DidDestroySynchronousOutputSurface( | 66 virtual void DidDestroySynchronousOutputSurface( |
66 SynchronousCompositorOutputSurface* output_surface) OVERRIDE; | 67 SynchronousCompositorOutputSurface* output_surface) OVERRIDE; |
(...skipping 22 matching lines...) Expand all Loading... |
89 SynchronousCompositorOutputSurface* output_surface_; | 90 SynchronousCompositorOutputSurface* output_surface_; |
90 WebContents* contents_; | 91 WebContents* contents_; |
91 cc::InputHandler* input_handler_; | 92 cc::InputHandler* input_handler_; |
92 | 93 |
93 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); | 94 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); |
94 }; | 95 }; |
95 | 96 |
96 } // namespace content | 97 } // namespace content |
97 | 98 |
98 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ | 99 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ |
OLD | NEW |