Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.h

Issue 100443006: Remove some LatencyInfo merging code path (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix android/mac build Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 520
521 typedef base::Callback<void(bool, const scoped_refptr<ui::Texture>&)> 521 typedef base::Callback<void(bool, const scoped_refptr<ui::Texture>&)>
522 BufferPresentedCallback; 522 BufferPresentedCallback;
523 523
524 // The common entry point for buffer updates from renderer 524 // The common entry point for buffer updates from renderer
525 // and GPU process. 525 // and GPU process.
526 void BuffersSwapped(const gfx::Size& surface_size, 526 void BuffersSwapped(const gfx::Size& surface_size,
527 const gfx::Rect& damage_rect, 527 const gfx::Rect& damage_rect,
528 float surface_scale_factor, 528 float surface_scale_factor,
529 const std::string& mailbox_name, 529 const std::string& mailbox_name,
530 const ui::LatencyInfo& latency_info, 530 const std::vector<ui::LatencyInfo>& latency_info,
531 const BufferPresentedCallback& ack_callback); 531 const BufferPresentedCallback& ack_callback);
532 532
533 bool SwapBuffersPrepare(const gfx::Rect& surface_rect, 533 bool SwapBuffersPrepare(const gfx::Rect& surface_rect,
534 float surface_scale_factor, 534 float surface_scale_factor,
535 const gfx::Rect& damage_rect, 535 const gfx::Rect& damage_rect,
536 const std::string& mailbox_name, 536 const std::string& mailbox_name,
537 const BufferPresentedCallback& ack_callback); 537 const BufferPresentedCallback& ack_callback);
538 538
539 void SwapBuffersCompleted( 539 void SwapBuffersCompleted(
540 const BufferPresentedCallback& ack_callback, 540 const BufferPresentedCallback& ack_callback,
541 const scoped_refptr<ui::Texture>& texture_to_return); 541 const scoped_refptr<ui::Texture>& texture_to_return);
542 542
543 void SwapDelegatedFrame( 543 void SwapDelegatedFrame(
544 uint32 output_surface_id, 544 uint32 output_surface_id,
545 scoped_ptr<cc::DelegatedFrameData> frame_data, 545 scoped_ptr<cc::DelegatedFrameData> frame_data,
546 float frame_device_scale_factor, 546 float frame_device_scale_factor,
547 const ui::LatencyInfo& latency_info); 547 const std::vector<ui::LatencyInfo>& latency_info);
548 void SendDelegatedFrameAck(uint32 output_surface_id); 548 void SendDelegatedFrameAck(uint32 output_surface_id);
549 void SendReturnedDelegatedResources(uint32 output_surface_id); 549 void SendReturnedDelegatedResources(uint32 output_surface_id);
550 550
551 // DelegatedFrameEvictorClient implementation. 551 // DelegatedFrameEvictorClient implementation.
552 virtual void EvictDelegatedFrame() OVERRIDE; 552 virtual void EvictDelegatedFrame() OVERRIDE;
553 553
554 // cc::DelegatedFrameProviderClient implementation. 554 // cc::DelegatedFrameProviderClient implementation.
555 virtual void UnusedResourcesAreAvailable() OVERRIDE; 555 virtual void UnusedResourcesAreAvailable() OVERRIDE;
556 556
557 void SwapSoftwareFrame(uint32 output_surface_id, 557 void SwapSoftwareFrame(uint32 output_surface_id,
558 scoped_ptr<cc::SoftwareFrameData> frame_data, 558 scoped_ptr<cc::SoftwareFrameData> frame_data,
559 float frame_device_scale_factor, 559 float frame_device_scale_factor,
560 const ui::LatencyInfo& latency_info); 560 const std::vector<ui::LatencyInfo>& latency_info);
561 void SendSoftwareFrameAck(uint32 output_surface_id); 561 void SendSoftwareFrameAck(uint32 output_surface_id);
562 void SendReclaimSoftwareFrames(); 562 void SendReclaimSoftwareFrames();
563 void ReleaseSoftwareFrame(uint32 output_surface_id, 563 void ReleaseSoftwareFrame(uint32 output_surface_id,
564 unsigned software_frame_id); 564 unsigned software_frame_id);
565 565
566 void DidReceiveFrameFromRenderer(); 566 void DidReceiveFrameFromRenderer();
567 567
568 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager(); 568 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager();
569 569
570 // Helper function to set keyboard focus to the main window. 570 // Helper function to set keyboard focus to the main window.
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 // passed to windowless plugins like Flash/Silverlight, etc as the 789 // passed to windowless plugins like Flash/Silverlight, etc as the
790 // container window. 790 // container window.
791 HWND plugin_parent_window_; 791 HWND plugin_parent_window_;
792 #endif 792 #endif
793 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 793 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
794 }; 794 };
795 795
796 } // namespace content 796 } // namespace content
797 797
798 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 798 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698