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

Side by Side Diff: services/ui/surfaces/direct_output_surface.h

Issue 2529703002: Mus: Install SwapBuffersCompleted/VSync callbacks to DirectOutputSurface(Ozone) (Closed)
Patch Set: Grab capabilities from the InProcessCommandBuffer instead of making them up Created 4 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 | « gpu/ipc/in_process_command_buffer.cc ('k') | services/ui/surfaces/direct_output_surface.cc » ('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 SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_ 5 #ifndef SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_
6 #define SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_ 6 #define SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "cc/output/in_process_context_provider.h" 10 #include "cc/output/in_process_context_provider.h"
(...skipping 28 matching lines...) Expand all
39 uint32_t GetFramebufferCopyTextureFormat() override; 39 uint32_t GetFramebufferCopyTextureFormat() override;
40 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override; 40 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override;
41 bool IsDisplayedAsOverlayPlane() const override; 41 bool IsDisplayedAsOverlayPlane() const override;
42 unsigned GetOverlayTextureId() const override; 42 unsigned GetOverlayTextureId() const override;
43 bool SurfaceIsSuspendForRecycle() const override; 43 bool SurfaceIsSuspendForRecycle() const override;
44 bool HasExternalStencilTest() const override; 44 bool HasExternalStencilTest() const override;
45 void ApplyExternalStencil() override; 45 void ApplyExternalStencil() override;
46 46
47 47
48 private: 48 private:
49 void OnSwapBuffersComplete(); 49 // Called when a swap completion is signaled from ImageTransportSurface.
50 void OnVSyncParametersUpdated(const base::TimeTicks& timebase, 50 void OnGpuSwapBuffersCompleted(
51 const base::TimeDelta& interval); 51 const std::vector<ui::LatencyInfo>& latency_info,
52 gfx::SwapResult result,
53 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac);
54 void OnVSyncParametersUpdated(base::TimeTicks timebase,
55 base::TimeDelta interval);
52 56
53 cc::OutputSurfaceClient* client_ = nullptr; 57 cc::OutputSurfaceClient* client_ = nullptr;
54 cc::SyntheticBeginFrameSource* const synthetic_begin_frame_source_; 58 cc::SyntheticBeginFrameSource* const synthetic_begin_frame_source_;
59
55 base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_; 60 base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_;
56 }; 61 };
57 62
58 } // namespace ui 63 } // namespace ui
59 64
60 #endif // SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_ 65 #endif // SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « gpu/ipc/in_process_command_buffer.cc ('k') | services/ui/surfaces/direct_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698