| 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_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 | 10 |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 void RequestContentClipping(const gfx::Rect& clipping, | 229 void RequestContentClipping(const gfx::Rect& clipping, |
| 230 const gfx::Size& content_size); | 230 const gfx::Size& content_size); |
| 231 | 231 |
| 232 // Returns true when animation ticks are still needed. This avoids a separate | 232 // Returns true when animation ticks are still needed. This avoids a separate |
| 233 // round-trip for requesting follow-up animation. | 233 // round-trip for requesting follow-up animation. |
| 234 bool Animate(base::TimeTicks frame_time); | 234 bool Animate(base::TimeTicks frame_time); |
| 235 | 235 |
| 236 void SynchronousFrameMetadata( | 236 void SynchronousFrameMetadata( |
| 237 const cc::CompositorFrameMetadata& frame_metadata); | 237 const cc::CompositorFrameMetadata& frame_metadata); |
| 238 | 238 |
| 239 float GetDeviceScaleFactor() const; |
| 240 |
| 239 private: | 241 private: |
| 240 void BuffersSwapped(const gpu::Mailbox& mailbox, | 242 void BuffersSwapped(const gpu::Mailbox& mailbox, |
| 241 uint32_t output_surface_id, | 243 uint32_t output_surface_id, |
| 242 const base::Closure& ack_callback); | 244 const base::Closure& ack_callback); |
| 243 | 245 |
| 244 void RunAckCallbacks(); | 246 void RunAckCallbacks(); |
| 245 | 247 |
| 246 void DestroyDelegatedContent(); | 248 void DestroyDelegatedContent(); |
| 247 void SwapDelegatedFrame(uint32 output_surface_id, | 249 void SwapDelegatedFrame(uint32 output_surface_id, |
| 248 scoped_ptr<cc::DelegatedFrameData> frame_data); | 250 scoped_ptr<cc::DelegatedFrameData> frame_data); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 gfx::Size default_size_; | 337 gfx::Size default_size_; |
| 336 | 338 |
| 337 const bool using_synchronous_compositor_; | 339 const bool using_synchronous_compositor_; |
| 338 | 340 |
| 339 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 341 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 340 }; | 342 }; |
| 341 | 343 |
| 342 } // namespace content | 344 } // namespace content |
| 343 | 345 |
| 344 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 346 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |