| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/cancelable_callback.h" | 9 #include "base/cancelable_callback.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 | 164 |
| 165 gfx::Size size_; | 165 gfx::Size size_; |
| 166 bool has_transparent_background_; | 166 bool has_transparent_background_; |
| 167 float device_scale_factor_; | 167 float device_scale_factor_; |
| 168 | 168 |
| 169 ANativeWindow* window_; | 169 ANativeWindow* window_; |
| 170 int surface_id_; | 170 int surface_id_; |
| 171 | 171 |
| 172 CompositorClient* client_; | 172 CompositorClient* client_; |
| 173 | 173 |
| 174 gfx::NativeWindow root_window_; | 174 ui::WindowAndroid* root_window_; |
| 175 | 175 |
| 176 // Used locally to track whether a call to LTH::Composite() did result in | 176 // Used locally to track whether a call to LTH::Composite() did result in |
| 177 // a posted SwapBuffers(). | 177 // a posted SwapBuffers(). |
| 178 bool did_post_swapbuffers_; | 178 bool did_post_swapbuffers_; |
| 179 | 179 |
| 180 // Used locally to inhibit ScheduleComposite() during Layout(). | 180 // Used locally to inhibit ScheduleComposite() during Layout(). |
| 181 bool ignore_schedule_composite_; | 181 bool ignore_schedule_composite_; |
| 182 | 182 |
| 183 // Whether we need to composite in general because of any invalidation or | 183 // Whether we need to composite in general because of any invalidation or |
| 184 // explicit request. | 184 // explicit request. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 base::ObserverList<VSyncObserver, true> observer_list_; | 216 base::ObserverList<VSyncObserver, true> observer_list_; |
| 217 | 217 |
| 218 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 218 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
| 219 | 219 |
| 220 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 220 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
| 221 }; | 221 }; |
| 222 | 222 |
| 223 } // namespace content | 223 } // namespace content |
| 224 | 224 |
| 225 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 225 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| OLD | NEW |