| 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_OUTPUT_SURFACE
_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE
_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE
_H_ | 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_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/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 bool InitializeHwDraw(); | 61 bool InitializeHwDraw(); |
| 62 bool DemandDrawHw(gfx::Size surface_size, | 62 bool DemandDrawHw(gfx::Size surface_size, |
| 63 const gfx::Transform& transform, | 63 const gfx::Transform& transform, |
| 64 gfx::Rect clip); | 64 gfx::Rect clip); |
| 65 bool DemandDrawSw(SkCanvas* canvas); | 65 bool DemandDrawSw(SkCanvas* canvas); |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 class SoftwareDevice; | 68 class SoftwareDevice; |
| 69 friend class SoftwareDevice; | 69 friend class SoftwareDevice; |
| 70 | 70 |
| 71 // Private OutputSurface overrides. |
| 72 virtual void PostCheckForRetroactiveBeginFrame() OVERRIDE; |
| 73 |
| 71 void InvokeComposite(gfx::Size damage_size); | 74 void InvokeComposite(gfx::Size damage_size); |
| 72 void UpdateCompositorClientSettings(); | 75 void UpdateCompositorClientSettings(); |
| 73 void NotifyCompositorSettingsChanged(); | 76 void NotifyCompositorSettingsChanged(); |
| 74 bool CalledOnValidThread() const; | 77 bool CalledOnValidThread() const; |
| 75 SynchronousCompositorOutputSurfaceDelegate* GetDelegate(); | 78 SynchronousCompositorOutputSurfaceDelegate* GetDelegate(); |
| 76 | 79 |
| 77 int routing_id_; | 80 int routing_id_; |
| 78 bool needs_begin_frame_; | 81 bool needs_begin_frame_; |
| 79 bool did_swap_buffer_; | 82 bool did_swap_buffer_; |
| 80 | 83 |
| 81 // Only valid (non-NULL) during a DemandDrawSw() call. | 84 // Only valid (non-NULL) during a DemandDrawSw() call. |
| 82 SkCanvas* current_sw_canvas_; | 85 SkCanvas* current_sw_canvas_; |
| 83 | 86 |
| 84 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); | 87 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); |
| 85 }; | 88 }; |
| 86 | 89 |
| 87 } // namespace content | 90 } // namespace content |
| 88 | 91 |
| 89 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF
ACE_H_ | 92 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF
ACE_H_ |
| OLD | NEW |