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

Side by Side Diff: content/common/gpu/image_transport_surface_overlay_mac.h

Issue 1730023004: Revert of Decouple browser-specific GPU IPC messages from GPU service IPCs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ 5 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_
6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ 6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_
7 7
8 #include <list> 8 #include <list>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 unsigned background_color, 56 unsigned background_color,
57 unsigned edge_aa_mask, 57 unsigned edge_aa_mask,
58 const gfx::RectF& rect, 58 const gfx::RectF& rect,
59 bool is_clipped, 59 bool is_clipped,
60 const gfx::RectF& clip_rect, 60 const gfx::RectF& clip_rect,
61 const gfx::Transform& transform, 61 const gfx::Transform& transform,
62 int sorting_context_id) override; 62 int sorting_context_id) override;
63 bool IsSurfaceless() const override; 63 bool IsSurfaceless() const override;
64 64
65 // ImageTransportSurface implementation 65 // ImageTransportSurface implementation
66 void BufferPresented(const BufferPresentedParams& params) override; 66 void OnBufferPresented(
67 const AcceleratedSurfaceMsg_BufferPresented_Params& params) override;
67 void SetLatencyInfo(const std::vector<ui::LatencyInfo>&) override; 68 void SetLatencyInfo(const std::vector<ui::LatencyInfo>&) override;
68 69
69 // ui::GpuSwitchingObserver implementation. 70 // ui::GpuSwitchingObserver implementation.
70 void OnGpuSwitched() override; 71 void OnGpuSwitched() override;
71 72
72 private: 73 private:
73 class PendingSwap; 74 class PendingSwap;
74 class OverlayPlane; 75 class OverlayPlane;
75 76
76 ~ImageTransportSurfaceOverlayMac() override; 77 ~ImageTransportSurfaceOverlayMac() override;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 base::TimeTicks vsync_timebase_; 139 base::TimeTicks vsync_timebase_;
139 base::TimeDelta vsync_interval_; 140 base::TimeDelta vsync_interval_;
140 141
141 base::Timer display_pending_swap_timer_; 142 base::Timer display_pending_swap_timer_;
142 base::WeakPtrFactory<ImageTransportSurfaceOverlayMac> weak_factory_; 143 base::WeakPtrFactory<ImageTransportSurfaceOverlayMac> weak_factory_;
143 }; 144 };
144 145
145 } // namespace content 146 } // namespace content
146 147
147 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ 148 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_
OLDNEW
« no previous file with comments | « content/common/gpu/image_transport_surface.cc ('k') | content/common/gpu/image_transport_surface_overlay_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698