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

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

Issue 466483003: Fix crashes in ui::Compositor on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_MAC_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <IOSurface/IOSurfaceAPI.h> 9 #include <IOSurface/IOSurfaceAPI.h>
10 #include <list> 10 #include <list>
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 scoped_ptr<PendingSwapAck> pending_swap_ack_; 544 scoped_ptr<PendingSwapAck> pending_swap_ack_;
545 void AddPendingSwapAck(int32 route_id, int gpu_host_id, int32 renderer_id); 545 void AddPendingSwapAck(int32 route_id, int gpu_host_id, int32 renderer_id);
546 546
547 // Returns whether this render view is a popup (autocomplete window). 547 // Returns whether this render view is a popup (autocomplete window).
548 bool IsPopup() const; 548 bool IsPopup() const;
549 549
550 // Shuts down the render_widget_host_. This is a separate function so we can 550 // Shuts down the render_widget_host_. This is a separate function so we can
551 // invoke it from the message loop. 551 // invoke it from the message loop.
552 void ShutdownHost(); 552 void ShutdownHost();
553 553
554 // Tear down all components of the browser compositor in an order that will
555 // ensure no dangling references.
556 void ShutdownBrowserCompositor();
557
554 void EnsureBrowserCompositorView(); 558 void EnsureBrowserCompositorView();
555 void DestroyBrowserCompositorView(); 559 void DestroyBrowserCompositorView();
556 560
557 void EnsureSoftwareLayer(); 561 void EnsureSoftwareLayer();
558 void DestroySoftwareLayer(); 562 void DestroySoftwareLayer();
559 563
560 bool EnsureCompositedIOSurface() WARN_UNUSED_RESULT; 564 bool EnsureCompositedIOSurface() WARN_UNUSED_RESULT;
561 void EnsureCompositedIOSurfaceLayer(); 565 void EnsureCompositedIOSurfaceLayer();
562 enum DestroyCompositedIOSurfaceLayerBehavior { 566 enum DestroyCompositedIOSurfaceLayerBehavior {
563 kLeaveLayerInHierarchy, 567 kLeaveLayerInHierarchy,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; 638 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_;
635 639
636 base::WeakPtrFactory<RenderWidgetHostViewMac> 640 base::WeakPtrFactory<RenderWidgetHostViewMac>
637 software_frame_weak_ptr_factory_; 641 software_frame_weak_ptr_factory_;
638 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 642 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
639 }; 643 };
640 644
641 } // namespace content 645 } // namespace content
642 646
643 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 647 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698