| 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_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 namespace cc { | 38 namespace cc { |
| 39 class DelegatedFrameData; | 39 class DelegatedFrameData; |
| 40 } | 40 } |
| 41 | 41 |
| 42 namespace gfx { | 42 namespace gfx { |
| 43 class Canvas; | 43 class Canvas; |
| 44 class Display; | 44 class Display; |
| 45 } | 45 } |
| 46 | 46 |
| 47 namespace gpu { | |
| 48 struct Mailbox; | |
| 49 } | |
| 50 | |
| 51 namespace ui { | 47 namespace ui { |
| 52 class CompositorLock; | 48 class CompositorLock; |
| 53 class InputMethod; | 49 class InputMethod; |
| 54 class Texture; | 50 class Texture; |
| 55 } | 51 } |
| 56 | 52 |
| 57 namespace content { | 53 namespace content { |
| 58 class RenderWidgetHostImpl; | 54 class RenderWidgetHostImpl; |
| 59 class RenderWidgetHostView; | 55 class RenderWidgetHostView; |
| 60 | 56 |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 | 353 |
| 358 // Converts |rect| from window coordinate to screen coordinate. | 354 // Converts |rect| from window coordinate to screen coordinate. |
| 359 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect); | 355 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect); |
| 360 | 356 |
| 361 typedef base::Callback<void(bool, const scoped_refptr<ui::Texture>&)> | 357 typedef base::Callback<void(bool, const scoped_refptr<ui::Texture>&)> |
| 362 BufferPresentedCallback; | 358 BufferPresentedCallback; |
| 363 | 359 |
| 364 // The common entry point for full buffer updates from renderer | 360 // The common entry point for full buffer updates from renderer |
| 365 // and GPU process. | 361 // and GPU process. |
| 366 void BuffersSwapped(const gfx::Size& size, | 362 void BuffersSwapped(const gfx::Size& size, |
| 367 const gpu::Mailbox& mailbox_name, | 363 const std::string& mailbox_name, |
| 368 const BufferPresentedCallback& ack_callback); | 364 const BufferPresentedCallback& ack_callback); |
| 369 | 365 |
| 370 bool SwapBuffersPrepare(const gfx::Rect& surface_rect, | 366 bool SwapBuffersPrepare(const gfx::Rect& surface_rect, |
| 371 const gfx::Rect& damage_rect, | 367 const gfx::Rect& damage_rect, |
| 372 const gpu::Mailbox& mailbox_name, | 368 const std::string& mailbox_name, |
| 373 const BufferPresentedCallback& ack_callback); | 369 const BufferPresentedCallback& ack_callback); |
| 374 | 370 |
| 375 void SwapBuffersCompleted( | 371 void SwapBuffersCompleted( |
| 376 const BufferPresentedCallback& ack_callback, | 372 const BufferPresentedCallback& ack_callback, |
| 377 const scoped_refptr<ui::Texture>& texture_to_return); | 373 const scoped_refptr<ui::Texture>& texture_to_return); |
| 378 | 374 |
| 379 void SwapDelegatedFrame( | 375 void SwapDelegatedFrame( |
| 380 scoped_ptr<cc::DelegatedFrameData> frame, | 376 scoped_ptr<cc::DelegatedFrameData> frame, |
| 381 float device_scale_factor); | 377 float device_scale_factor); |
| 382 void SendDelegatedFrameAck(); | 378 void SendDelegatedFrameAck(); |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 #endif | 536 #endif |
| 541 | 537 |
| 542 base::TimeTicks last_draw_ended_; | 538 base::TimeTicks last_draw_ended_; |
| 543 | 539 |
| 544 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 540 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 545 }; | 541 }; |
| 546 | 542 |
| 547 } // namespace content | 543 } // namespace content |
| 548 | 544 |
| 549 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 545 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |