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

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

Issue 1534623002: Mac CoreAnimation: Add more CALayer parameters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows compile Created 5 years 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 | « cc/output/gl_renderer.cc ('k') | content/common/gpu/image_transport_surface_overlay_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 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 bool SetBackbufferAllocation(bool allocated) override; 43 bool SetBackbufferAllocation(bool allocated) override;
44 bool ScheduleOverlayPlane(int z_order, 44 bool ScheduleOverlayPlane(int z_order,
45 gfx::OverlayTransform transform, 45 gfx::OverlayTransform transform,
46 gl::GLImage* image, 46 gl::GLImage* image,
47 const gfx::Rect& bounds_rect, 47 const gfx::Rect& bounds_rect,
48 const gfx::RectF& crop_rect) override; 48 const gfx::RectF& crop_rect) override;
49 bool ScheduleCALayer(gl::GLImage* contents_image, 49 bool ScheduleCALayer(gl::GLImage* contents_image,
50 const gfx::RectF& contents_rect, 50 const gfx::RectF& contents_rect,
51 float opacity, 51 float opacity,
52 unsigned background_color, 52 unsigned background_color,
53 const gfx::SizeF& bounds_size, 53 unsigned edge_aa_mask,
54 const gfx::RectF& bounds_rect,
55 bool is_clipped,
56 const gfx::RectF& clip_rect,
54 const gfx::Transform& transform) override; 57 const gfx::Transform& transform) override;
55 bool IsSurfaceless() const override; 58 bool IsSurfaceless() const override;
56 59
57 // ImageTransportSurface implementation 60 // ImageTransportSurface implementation
58 void OnBufferPresented( 61 void OnBufferPresented(
59 const AcceleratedSurfaceMsg_BufferPresented_Params& params) override; 62 const AcceleratedSurfaceMsg_BufferPresented_Params& params) override;
60 void SetLatencyInfo(const std::vector<ui::LatencyInfo>&) override; 63 void SetLatencyInfo(const std::vector<ui::LatencyInfo>&) override;
61 64
62 // ui::GpuSwitchingObserver implementation. 65 // ui::GpuSwitchingObserver implementation.
63 void OnGpuSwitched() override; 66 void OnGpuSwitched() override;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // swap and increments with each call to ScheduleCALayer. 146 // swap and increments with each call to ScheduleCALayer.
144 int next_ca_layer_z_order_; 147 int next_ca_layer_z_order_;
145 148
146 base::Timer display_pending_swap_timer_; 149 base::Timer display_pending_swap_timer_;
147 base::WeakPtrFactory<ImageTransportSurfaceOverlayMac> weak_factory_; 150 base::WeakPtrFactory<ImageTransportSurfaceOverlayMac> weak_factory_;
148 }; 151 };
149 152
150 } // namespace content 153 } // namespace content
151 154
152 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ 155 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_
OLDNEW
« no previous file with comments | « cc/output/gl_renderer.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