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

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

Issue 15842013: Plumb LatencyInfo through aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect); 452 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect);
453 453
454 typedef base::Callback<void(bool, const scoped_refptr<ui::Texture>&)> 454 typedef base::Callback<void(bool, const scoped_refptr<ui::Texture>&)>
455 BufferPresentedCallback; 455 BufferPresentedCallback;
456 456
457 // The common entry point for full buffer updates from renderer 457 // The common entry point for full buffer updates from renderer
458 // and GPU process. 458 // and GPU process.
459 void BuffersSwapped(const gfx::Size& size, 459 void BuffersSwapped(const gfx::Size& size,
460 float surface_scale_factor, 460 float surface_scale_factor,
461 const std::string& mailbox_name, 461 const std::string& mailbox_name,
462 const ui::LatencyInfo& latency_info,
462 const BufferPresentedCallback& ack_callback); 463 const BufferPresentedCallback& ack_callback);
463 464
464 bool SwapBuffersPrepare(const gfx::Rect& surface_rect, 465 bool SwapBuffersPrepare(const gfx::Rect& surface_rect,
465 float surface_scale_factor, 466 float surface_scale_factor,
466 const gfx::Rect& damage_rect, 467 const gfx::Rect& damage_rect,
467 const std::string& mailbox_name, 468 const std::string& mailbox_name,
468 const BufferPresentedCallback& ack_callback); 469 const BufferPresentedCallback& ack_callback);
469 470
470 void SwapBuffersCompleted( 471 void SwapBuffersCompleted(
471 const BufferPresentedCallback& ack_callback, 472 const BufferPresentedCallback& ack_callback,
472 const scoped_refptr<ui::Texture>& texture_to_return); 473 const scoped_refptr<ui::Texture>& texture_to_return);
473 474
474 void SwapDelegatedFrame( 475 void SwapDelegatedFrame(
475 scoped_ptr<cc::DelegatedFrameData> frame_data, 476 scoped_ptr<cc::DelegatedFrameData> frame_data,
476 float frame_device_scale_factor); 477 float frame_device_scale_factor,
478 const ui::LatencyInfo& latency_info);
477 void SendDelegatedFrameAck(); 479 void SendDelegatedFrameAck();
478 480
479 void SwapSoftwareFrame( 481 void SwapSoftwareFrame(
480 scoped_ptr<cc::SoftwareFrameData> frame_data, 482 scoped_ptr<cc::SoftwareFrameData> frame_data,
481 float frame_device_scale_factor); 483 float frame_device_scale_factor,
484 const ui::LatencyInfo& latency_info);
482 void SendSoftwareFrameAck(const TransportDIB::Id& id); 485 void SendSoftwareFrameAck(const TransportDIB::Id& id);
483 486
484 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager(); 487 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager();
485 488
486 #if defined(OS_WIN) 489 #if defined(OS_WIN)
487 // Sets the cutout rects from transient windows. These are rectangles that 490 // Sets the cutout rects from transient windows. These are rectangles that
488 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout 491 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout
489 // rects. 492 // rects.
490 void UpdateTransientRects(const std::vector<gfx::Rect>& rects); 493 void UpdateTransientRects(const std::vector<gfx::Rect>& rects);
491 494
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; 674 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_;
672 675
673 TouchEditingClient* touch_editing_client_; 676 TouchEditingClient* touch_editing_client_;
674 677
675 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 678 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
676 }; 679 };
677 680
678 } // namespace content 681 } // namespace content
679 682
680 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 683 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698