| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 virtual void PostCheckForRetroactiveBeginFrame() OVERRIDE; | 72 virtual void PostCheckForRetroactiveBeginFrame() OVERRIDE; |
| 73 | 73 |
| 74 void InvokeComposite(gfx::Size damage_size); | 74 void InvokeComposite(gfx::Size damage_size); |
| 75 void UpdateCompositorClientSettings(); | 75 void UpdateCompositorClientSettings(); |
| 76 void NotifyCompositorSettingsChanged(); | 76 void NotifyCompositorSettingsChanged(); |
| 77 bool CalledOnValidThread() const; | 77 bool CalledOnValidThread() const; |
| 78 SynchronousCompositorOutputSurfaceDelegate* GetDelegate(); | 78 SynchronousCompositorOutputSurfaceDelegate* GetDelegate(); |
| 79 | 79 |
| 80 int routing_id_; | 80 int routing_id_; |
| 81 bool needs_begin_frame_; | 81 bool needs_begin_frame_; |
| 82 bool invoking_composite_; |
| 82 bool did_swap_buffer_; | 83 bool did_swap_buffer_; |
| 83 | 84 |
| 84 // Only valid (non-NULL) during a DemandDrawSw() call. | 85 // Only valid (non-NULL) during a DemandDrawSw() call. |
| 85 SkCanvas* current_sw_canvas_; | 86 SkCanvas* current_sw_canvas_; |
| 86 | 87 |
| 87 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); | 88 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 } // namespace content | 91 } // namespace content |
| 91 | 92 |
| 92 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF
ACE_H_ | 93 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF
ACE_H_ |
| OLD | NEW |