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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 | 451 |
452 // Converts |rect| from window coordinate to screen coordinate. | 452 // Converts |rect| from window coordinate to screen coordinate. |
453 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect); | 453 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect); |
454 | 454 |
455 // Converts |rect| from screen coordinate to window coordinate. | 455 // Converts |rect| from screen coordinate to window coordinate. |
456 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect); | 456 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect); |
457 | 457 |
458 typedef base::Callback<void(bool, const scoped_refptr<ui::Texture>&)> | 458 typedef base::Callback<void(bool, const scoped_refptr<ui::Texture>&)> |
459 BufferPresentedCallback; | 459 BufferPresentedCallback; |
460 | 460 |
461 // The common entry point for full buffer updates from renderer | 461 // The common entry point for buffer updates from renderer |
462 // and GPU process. | 462 // and GPU process. |
463 void BuffersSwapped(const gfx::Size& size, | 463 void BuffersSwapped(const gfx::Size& surface_size, |
| 464 const gfx::Rect& damage_rect, |
464 float surface_scale_factor, | 465 float surface_scale_factor, |
465 const std::string& mailbox_name, | 466 const std::string& mailbox_name, |
466 const ui::LatencyInfo& latency_info, | 467 const ui::LatencyInfo& latency_info, |
467 const BufferPresentedCallback& ack_callback); | 468 const BufferPresentedCallback& ack_callback); |
468 | 469 |
469 bool SwapBuffersPrepare(const gfx::Rect& surface_rect, | 470 bool SwapBuffersPrepare(const gfx::Rect& surface_rect, |
470 float surface_scale_factor, | 471 float surface_scale_factor, |
471 const gfx::Rect& damage_rect, | 472 const gfx::Rect& damage_rect, |
472 const std::string& mailbox_name, | 473 const std::string& mailbox_name, |
473 const BufferPresentedCallback& ack_callback); | 474 const BufferPresentedCallback& ack_callback); |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 TouchEditingClient* touch_editing_client_; | 681 TouchEditingClient* touch_editing_client_; |
681 | 682 |
682 ui::LatencyInfo software_latency_info_; | 683 ui::LatencyInfo software_latency_info_; |
683 | 684 |
684 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 685 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
685 }; | 686 }; |
686 | 687 |
687 } // namespace content | 688 } // namespace content |
688 | 689 |
689 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 690 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |