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

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

Issue 2866983002: mac: Don't set background color from a frame until frame is displayed (Closed)
Patch Set: Created 3 years, 7 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/IOSurface.h> 9 #include <IOSurface/IOSurface.h>
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 549
550 // Whether a request for begin frames has been issued. 550 // Whether a request for begin frames has been issued.
551 bool needs_begin_frames_; 551 bool needs_begin_frames_;
552 552
553 // Whether a request to flush input has been issued. 553 // Whether a request to flush input has been issued.
554 bool needs_flush_input_; 554 bool needs_flush_input_;
555 555
556 // The background color of the web content. This color will be drawn when the 556 // The background color of the web content. This color will be drawn when the
557 // web content is not able to draw in time. 557 // web content is not able to draw in time.
558 SkColor background_color_ = SK_ColorTRANSPARENT; 558 SkColor background_color_ = SK_ColorTRANSPARENT;
559 SkColor last_frame_root_background_color_ = SK_ColorTRANSPARENT;
559 560
560 // Factory used to safely scope delayed calls to ShutdownHost(). 561 // Factory used to safely scope delayed calls to ShutdownHost().
561 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; 562 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_;
562 563
563 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 564 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
564 }; 565 };
565 566
566 } // namespace content 567 } // namespace content
567 568
568 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 569 #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