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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
53 virtual void ReleaseHwDraw() OVERRIDE; | 53 virtual void ReleaseHwDraw() OVERRIDE; |
54 virtual bool DemandDrawHw( | 54 virtual bool DemandDrawHw( |
55 gfx::Size surface_size, | 55 gfx::Size surface_size, |
56 const gfx::Transform& transform, | 56 const gfx::Transform& transform, |
57 gfx::Rect viewport, | 57 gfx::Rect viewport, |
58 gfx::Rect clip, | 58 gfx::Rect clip, |
59 bool stencil_enabled) OVERRIDE; | 59 bool stencil_enabled) OVERRIDE; |
60 virtual bool DemandDrawSw(SkCanvas* canvas) OVERRIDE; | 60 virtual bool DemandDrawSw(SkCanvas* canvas) OVERRIDE; |
61 virtual void SetMemoryPolicy( | 61 virtual void SetMemoryPolicy( |
62 const SynchronousCompositorMemoryPolicy& policy) OVERRIDE; | 62 const SynchronousCompositorMemoryPolicy& policy) OVERRIDE; |
63 virtual const SynchronousCompositorMemoryPolicy& | |
64 GetMemoryPolicy() const OVERRIDE; | |
63 virtual void DidChangeRootLayerScrollOffset() OVERRIDE; | 65 virtual void DidChangeRootLayerScrollOffset() OVERRIDE; |
64 | 66 |
65 // SynchronousCompositorOutputSurfaceDelegate | 67 // SynchronousCompositorOutputSurfaceDelegate |
66 virtual void DidBindOutputSurface( | 68 virtual void DidBindOutputSurface( |
67 SynchronousCompositorOutputSurface* output_surface) OVERRIDE; | 69 SynchronousCompositorOutputSurface* output_surface) OVERRIDE; |
68 virtual void DidDestroySynchronousOutputSurface( | 70 virtual void DidDestroySynchronousOutputSurface( |
69 SynchronousCompositorOutputSurface* output_surface) OVERRIDE; | 71 SynchronousCompositorOutputSurface* output_surface) OVERRIDE; |
70 virtual void SetContinuousInvalidate(bool enable) OVERRIDE; | 72 virtual void SetContinuousInvalidate(bool enable) OVERRIDE; |
71 virtual void UpdateFrameMetaData( | 73 virtual void UpdateFrameMetaData( |
72 const cc::CompositorFrameMetadata& frame_info) OVERRIDE; | 74 const cc::CompositorFrameMetadata& frame_info) OVERRIDE; |
(...skipping 21 matching lines...) Expand all Loading... | |
94 friend class WebContentsUserData<SynchronousCompositorImpl>; | 96 friend class WebContentsUserData<SynchronousCompositorImpl>; |
95 | 97 |
96 void DidCreateSynchronousOutputSurface( | 98 void DidCreateSynchronousOutputSurface( |
97 SynchronousCompositorOutputSurface* output_surface); | 99 SynchronousCompositorOutputSurface* output_surface); |
98 bool CalledOnValidThread() const; | 100 bool CalledOnValidThread() const; |
99 | 101 |
100 SynchronousCompositorClient* compositor_client_; | 102 SynchronousCompositorClient* compositor_client_; |
101 SynchronousCompositorOutputSurface* output_surface_; | 103 SynchronousCompositorOutputSurface* output_surface_; |
102 WebContents* contents_; | 104 WebContents* contents_; |
103 cc::InputHandler* input_handler_; | 105 cc::InputHandler* input_handler_; |
106 SynchronousCompositorMemoryPolicy memory_policy_; | |
boliu
2014/04/08 03:06:45
Why not keep this in HardwareRenderer? You shouldn
| |
104 | 107 |
105 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); | 108 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorImpl); |
106 }; | 109 }; |
107 | 110 |
108 } // namespace content | 111 } // namespace content |
109 | 112 |
110 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ | 113 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_IMPL_H_ |
OLD | NEW |