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

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

Issue 148003006: Use gpu::Mailbox instead of std:string in IPCs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed typo Created 6 years, 10 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 <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class CopyOutputRequest; 53 class CopyOutputRequest;
54 class CopyOutputResult; 54 class CopyOutputResult;
55 class DelegatedFrameData; 55 class DelegatedFrameData;
56 } 56 }
57 57
58 namespace gfx { 58 namespace gfx {
59 class Canvas; 59 class Canvas;
60 class Display; 60 class Display;
61 } 61 }
62 62
63 namespace gpu {
64 struct Mailbox;
65 }
66
63 namespace ui { 67 namespace ui {
64 class CompositorLock; 68 class CompositorLock;
65 class CompositorVSyncManager; 69 class CompositorVSyncManager;
66 class InputMethod; 70 class InputMethod;
67 class LocatedEvent; 71 class LocatedEvent;
68 class Texture; 72 class Texture;
69 } 73 }
70 74
71 namespace content { 75 namespace content {
72 #if defined(OS_WIN) 76 #if defined(OS_WIN)
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const; 527 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const;
524 528
525 typedef base::Callback<void(bool, const scoped_refptr<ui::Texture>&)> 529 typedef base::Callback<void(bool, const scoped_refptr<ui::Texture>&)>
526 BufferPresentedCallback; 530 BufferPresentedCallback;
527 531
528 // The common entry point for buffer updates from renderer 532 // The common entry point for buffer updates from renderer
529 // and GPU process. 533 // and GPU process.
530 void BuffersSwapped(const gfx::Size& surface_size, 534 void BuffersSwapped(const gfx::Size& surface_size,
531 const gfx::Rect& damage_rect, 535 const gfx::Rect& damage_rect,
532 float surface_scale_factor, 536 float surface_scale_factor,
533 const std::string& mailbox_name, 537 const gpu::Mailbox& mailbox,
534 const std::vector<ui::LatencyInfo>& latency_info, 538 const std::vector<ui::LatencyInfo>& latency_info,
535 const BufferPresentedCallback& ack_callback); 539 const BufferPresentedCallback& ack_callback);
536 540
537 bool SwapBuffersPrepare(const gfx::Rect& surface_rect, 541 bool SwapBuffersPrepare(const gfx::Rect& surface_rect,
538 float surface_scale_factor, 542 float surface_scale_factor,
539 const gfx::Rect& damage_rect, 543 const gfx::Rect& damage_rect,
540 const std::string& mailbox_name, 544 const gpu::Mailbox& mailbox,
541 const BufferPresentedCallback& ack_callback); 545 const BufferPresentedCallback& ack_callback);
542 546
543 void SwapBuffersCompleted( 547 void SwapBuffersCompleted(
544 const BufferPresentedCallback& ack_callback, 548 const BufferPresentedCallback& ack_callback,
545 const scoped_refptr<ui::Texture>& texture_to_return); 549 const scoped_refptr<ui::Texture>& texture_to_return);
546 550
547 void SwapDelegatedFrame( 551 void SwapDelegatedFrame(
548 uint32 output_surface_id, 552 uint32 output_surface_id,
549 scoped_ptr<cc::DelegatedFrameData> frame_data, 553 scoped_ptr<cc::DelegatedFrameData> frame_data,
550 float frame_device_scale_factor, 554 float frame_device_scale_factor,
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 // etc. 790 // etc.
787 scoped_ptr<content::LegacyRenderWidgetHostHWND> 791 scoped_ptr<content::LegacyRenderWidgetHostHWND>
788 legacy_render_widget_host_HWND_; 792 legacy_render_widget_host_HWND_;
789 #endif 793 #endif
790 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 794 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
791 }; 795 };
792 796
793 } // namespace content 797 } // namespace content
794 798
795 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 799 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host_ui_shim.cc ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698