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

Side by Side Diff: services/ui/surfaces/display_output_surface_ozone.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_OZONE_H_ 5 #ifndef SERVICES_UI_SURFACES_DISPLAY_OUTPUT_SURFACE_OZONE_H_
6 #define SERVICES_UI_SURFACES_DISPLAY_OUTPUT_SURFACE_OZONE_H_ 6 #define SERVICES_UI_SURFACES_DISPLAY_OUTPUT_SURFACE_OZONE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 private: 52 private:
53 // cc::OutputSurface implementation. 53 // cc::OutputSurface implementation.
54 void BindToClient(cc::OutputSurfaceClient* client) override; 54 void BindToClient(cc::OutputSurfaceClient* client) override;
55 void EnsureBackbuffer() override; 55 void EnsureBackbuffer() override;
56 void DiscardBackbuffer() override; 56 void DiscardBackbuffer() override;
57 void BindFramebuffer() override; 57 void BindFramebuffer() override;
58 void Reshape(const gfx::Size& size, 58 void Reshape(const gfx::Size& size,
59 float device_scale_factor, 59 float device_scale_factor,
60 const gfx::ColorSpace& color_space, 60 const gfx::ColorSpace& color_space,
61 bool has_alpha) override; 61 bool has_alpha,
62 bool use_stencil) override;
62 void SwapBuffers(cc::OutputSurfaceFrame frame) override; 63 void SwapBuffers(cc::OutputSurfaceFrame frame) override;
63 uint32_t GetFramebufferCopyTextureFormat() override; 64 uint32_t GetFramebufferCopyTextureFormat() override;
64 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override; 65 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override;
65 bool IsDisplayedAsOverlayPlane() const override; 66 bool IsDisplayedAsOverlayPlane() const override;
66 unsigned GetOverlayTextureId() const override; 67 unsigned GetOverlayTextureId() const override;
67 bool SurfaceIsSuspendForRecycle() const override; 68 bool SurfaceIsSuspendForRecycle() const override;
68 bool HasExternalStencilTest() const override; 69 bool HasExternalStencilTest() const override;
69 void ApplyExternalStencil() override; 70 void ApplyExternalStencil() override;
70 71
71 // Called when a swap completion is signaled from ImageTransportSurface. 72 // Called when a swap completion is signaled from ImageTransportSurface.
(...skipping 12 matching lines...) Expand all
84 85
85 gfx::Size reshape_size_; 86 gfx::Size reshape_size_;
86 gfx::Size swap_size_; 87 gfx::Size swap_size_;
87 88
88 base::WeakPtrFactory<DisplayOutputSurfaceOzone> weak_ptr_factory_; 89 base::WeakPtrFactory<DisplayOutputSurfaceOzone> weak_ptr_factory_;
89 }; 90 };
90 91
91 } // namespace ui 92 } // namespace ui
92 93
93 #endif // SERVICES_UI_SURFACES_DISPLAY_OUTPUT_SURFACE_OZONE_H_ 94 #endif // SERVICES_UI_SURFACES_DISPLAY_OUTPUT_SURFACE_OZONE_H_
OLDNEW
« no previous file with comments | « services/ui/surfaces/display_output_surface.cc ('k') | services/ui/surfaces/display_output_surface_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698