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

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

Issue 2612023002: cc: Implement overdraw feedback debugging feature. (Closed)
Patch Set: make sure overdraw_feedback_ is initialized and reset properly Created 3 years, 11 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 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_DISPLAY_OUTPUT_SURFACE_H_ 5 #ifndef SERVICES_UI_SURFACES_DISPLAY_OUTPUT_SURFACE_H_
6 #define SERVICES_UI_SURFACES_DISPLAY_OUTPUT_SURFACE_H_ 6 #define SERVICES_UI_SURFACES_DISPLAY_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 15 matching lines...) Expand all
26 ~DisplayOutputSurface() override; 26 ~DisplayOutputSurface() override;
27 27
28 // cc::OutputSurface implementation 28 // cc::OutputSurface implementation
29 void BindToClient(cc::OutputSurfaceClient* client) override; 29 void BindToClient(cc::OutputSurfaceClient* client) override;
30 void EnsureBackbuffer() override; 30 void EnsureBackbuffer() override;
31 void DiscardBackbuffer() override; 31 void DiscardBackbuffer() override;
32 void BindFramebuffer() override; 32 void BindFramebuffer() override;
33 void Reshape(const gfx::Size& size, 33 void Reshape(const gfx::Size& size,
34 float device_scale_factor, 34 float device_scale_factor,
35 const gfx::ColorSpace& color_space, 35 const gfx::ColorSpace& color_space,
36 bool has_alpha) override; 36 bool has_alpha,
37 bool use_stencil) override;
37 void SwapBuffers(cc::OutputSurfaceFrame frame) override; 38 void SwapBuffers(cc::OutputSurfaceFrame frame) override;
38 uint32_t GetFramebufferCopyTextureFormat() override; 39 uint32_t GetFramebufferCopyTextureFormat() override;
39 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override; 40 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override;
40 bool IsDisplayedAsOverlayPlane() const override; 41 bool IsDisplayedAsOverlayPlane() const override;
41 unsigned GetOverlayTextureId() const override; 42 unsigned GetOverlayTextureId() const override;
42 bool SurfaceIsSuspendForRecycle() const override; 43 bool SurfaceIsSuspendForRecycle() const override;
43 bool HasExternalStencilTest() const override; 44 bool HasExternalStencilTest() const override;
44 void ApplyExternalStencil() override; 45 void ApplyExternalStencil() override;
45 46
46 private: 47 private:
47 // Called when a swap completion is signaled from ImageTransportSurface. 48 // Called when a swap completion is signaled from ImageTransportSurface.
48 void OnGpuSwapBuffersCompleted( 49 void OnGpuSwapBuffersCompleted(
49 const std::vector<ui::LatencyInfo>& latency_info, 50 const std::vector<ui::LatencyInfo>& latency_info,
50 gfx::SwapResult result, 51 gfx::SwapResult result,
51 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac); 52 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac);
52 void OnVSyncParametersUpdated(base::TimeTicks timebase, 53 void OnVSyncParametersUpdated(base::TimeTicks timebase,
53 base::TimeDelta interval); 54 base::TimeDelta interval);
54 55
55 cc::OutputSurfaceClient* client_ = nullptr; 56 cc::OutputSurfaceClient* client_ = nullptr;
56 cc::SyntheticBeginFrameSource* const synthetic_begin_frame_source_; 57 cc::SyntheticBeginFrameSource* const synthetic_begin_frame_source_;
57 58
58 base::WeakPtrFactory<DisplayOutputSurface> weak_ptr_factory_; 59 base::WeakPtrFactory<DisplayOutputSurface> weak_ptr_factory_;
59 }; 60 };
60 61
61 } // namespace ui 62 } // namespace ui
62 63
63 #endif // SERVICES_UI_SURFACES_DISPLAY_OUTPUT_SURFACE_H_ 64 #endif // SERVICES_UI_SURFACES_DISPLAY_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/renderer/android/synchronous_compositor_frame_sink.cc ('k') | services/ui/surfaces/display_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698