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

Side by Side Diff: content/browser/compositor/software_browser_compositor_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 CONTENT_BROWSER_COMPOSITOR_SOFTWARE_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_SOFTWARE_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_SOFTWARE_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_SOFTWARE_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 17 matching lines...) Expand all
28 ~SoftwareBrowserCompositorOutputSurface() override; 28 ~SoftwareBrowserCompositorOutputSurface() override;
29 29
30 // OutputSurface implementation. 30 // OutputSurface implementation.
31 void BindToClient(cc::OutputSurfaceClient* client) override; 31 void BindToClient(cc::OutputSurfaceClient* client) override;
32 void EnsureBackbuffer() override; 32 void EnsureBackbuffer() override;
33 void DiscardBackbuffer() override; 33 void DiscardBackbuffer() override;
34 void BindFramebuffer() override; 34 void BindFramebuffer() override;
35 void Reshape(const gfx::Size& size, 35 void Reshape(const gfx::Size& size,
36 float device_scale_factor, 36 float device_scale_factor,
37 const gfx::ColorSpace& color_space, 37 const gfx::ColorSpace& color_space,
38 bool has_alpha) override; 38 bool has_alpha,
39 bool use_stencil) override;
39 void SwapBuffers(cc::OutputSurfaceFrame frame) override; 40 void SwapBuffers(cc::OutputSurfaceFrame frame) 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 uint32_t GetFramebufferCopyTextureFormat() override; 44 uint32_t GetFramebufferCopyTextureFormat() override;
44 45
45 private: 46 private:
46 // BrowserCompositorOutputSurface implementation. 47 // BrowserCompositorOutputSurface implementation.
47 #if defined(OS_MACOSX) 48 #if defined(OS_MACOSX)
48 void SetSurfaceSuspendedForRecycle(bool suspended) override; 49 void SetSurfaceSuspendedForRecycle(bool suspended) override;
49 #endif 50 #endif
50 51
51 void SwapBuffersCallback(); 52 void SwapBuffersCallback();
52 53
53 cc::OutputSurfaceClient* client_ = nullptr; 54 cc::OutputSurfaceClient* client_ = nullptr;
54 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 55 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
55 base::WeakPtrFactory<SoftwareBrowserCompositorOutputSurface> weak_factory_; 56 base::WeakPtrFactory<SoftwareBrowserCompositorOutputSurface> weak_factory_;
56 57
57 DISALLOW_COPY_AND_ASSIGN(SoftwareBrowserCompositorOutputSurface); 58 DISALLOW_COPY_AND_ASSIGN(SoftwareBrowserCompositorOutputSurface);
58 }; 59 };
59 60
60 } // namespace content 61 } // namespace content
61 62
62 #endif // CONTENT_BROWSER_COMPOSITOR_SOFTWARE_BROWSER_COMPOSITOR_OUTPUT_SURFACE _H_ 63 #endif // CONTENT_BROWSER_COMPOSITOR_SOFTWARE_BROWSER_COMPOSITOR_OUTPUT_SURFACE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698