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

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

Issue 2125143004: Mac: Clean up visibility state tracking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_dfh
Patch Set: Use state instead Created 4 years, 5 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/browser_compositor_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BROWSER_COMPOSITOR_VIEW_MAC_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "cc/scheduler/begin_frame_source.h" 11 #include "cc/scheduler/begin_frame_source.h"
12 #include "content/browser/renderer_host/delegated_frame_host.h" 12 #include "content/browser/renderer_host/delegated_frame_host.h"
13 #include "ui/compositor/compositor.h" 13 #include "ui/compositor/compositor.h"
14 #include "ui/compositor/compositor_observer.h" 14 #include "ui/compositor/compositor_observer.h"
15 15
16 namespace ui { 16 namespace ui {
17 class AcceleratedWidgetMac; 17 class AcceleratedWidgetMac;
18 class AcceleratedWidgetMacNSView; 18 class AcceleratedWidgetMacNSView;
19 } 19 }
20 20
21 namespace content { 21 namespace content {
22 22
23 class RecyclableCompositorMac; 23 class RecyclableCompositorMac;
24 24
25 class BrowserCompositorMacClient { 25 class BrowserCompositorMacClient {
26 public: 26 public:
27 virtual NSView* BrowserCompositorMacGetNSView() const = 0; 27 virtual NSView* BrowserCompositorMacGetNSView() const = 0;
28 virtual bool BrowserCompositorMacIsVisible() const = 0;
29 virtual SkColor BrowserCompositorMacGetGutterColor(SkColor color) const = 0; 28 virtual SkColor BrowserCompositorMacGetGutterColor(SkColor color) const = 0;
30 virtual void BrowserCompositorMacSendCompositorSwapAck( 29 virtual void BrowserCompositorMacSendCompositorSwapAck(
31 int output_surface_id, 30 int output_surface_id,
32 const cc::CompositorFrameAck& ack) = 0; 31 const cc::CompositorFrameAck& ack) = 0;
33 virtual void BrowserCompositorMacSendReclaimCompositorResources( 32 virtual void BrowserCompositorMacSendReclaimCompositorResources(
34 int output_surface_id, 33 int output_surface_id,
35 const cc::CompositorFrameAck& ack) = 0; 34 const cc::CompositorFrameAck& ack) = 0;
36 virtual void BrowserCompositorMacOnLostCompositorResources() = 0; 35 virtual void BrowserCompositorMacOnLostCompositorResources() = 0;
37 virtual void BrowserCompositorMacUpdateVSyncParameters( 36 virtual void BrowserCompositorMacUpdateVSyncParameters(
38 const base::TimeTicks& timebase, 37 const base::TimeTicks& timebase,
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 cc::BeginFrameSource* begin_frame_source_ = nullptr; 191 cc::BeginFrameSource* begin_frame_source_ = nullptr;
193 cc::BeginFrameArgs last_begin_frame_args_; 192 cc::BeginFrameArgs last_begin_frame_args_;
194 bool needs_begin_frames_ = false; 193 bool needs_begin_frames_ = false;
195 194
196 base::WeakPtrFactory<BrowserCompositorMac> weak_factory_; 195 base::WeakPtrFactory<BrowserCompositorMac> weak_factory_;
197 }; 196 };
198 197
199 } // namespace content 198 } // namespace content
200 199
201 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_ 200 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_COMPOSITOR_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/browser_compositor_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698