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

Side by Side Diff: content/browser/compositor/offscreen_browser_compositor_output_surface.h

Issue 2102203003: Color: Plumb color profile from ui::Compositor to cc::DirectRenderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on top of s/ColorProfile/ColorSpace/ Created 4 years, 5 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 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_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _
6 #define CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _ 6 #define CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 21 matching lines...) Expand all
32 cc::SyntheticBeginFrameSource* begin_frame_source, 32 cc::SyntheticBeginFrameSource* begin_frame_source,
33 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> 33 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator>
34 overlay_candidate_validator); 34 overlay_candidate_validator);
35 35
36 ~OffscreenBrowserCompositorOutputSurface() override; 36 ~OffscreenBrowserCompositorOutputSurface() override;
37 37
38 protected: 38 protected:
39 // cc::OutputSurface: 39 // cc::OutputSurface:
40 void EnsureBackbuffer() override; 40 void EnsureBackbuffer() override;
41 void DiscardBackbuffer() override; 41 void DiscardBackbuffer() override;
42 void Reshape(const gfx::Size& size, float scale_factor, bool alpha) override; 42 void Reshape(const gfx::Size& size,
43 float scale_factor,
44 const gfx::ColorSpace& color_space,
45 bool alpha) override;
43 void BindFramebuffer() override; 46 void BindFramebuffer() override;
44 uint32_t GetFramebufferCopyTextureFormat() override; 47 uint32_t GetFramebufferCopyTextureFormat() override;
45 void SwapBuffers(cc::CompositorFrame frame) override; 48 void SwapBuffers(cc::CompositorFrame frame) override;
46 49
47 // BrowserCompositorOutputSurface 50 // BrowserCompositorOutputSurface
48 void OnReflectorChanged() override; 51 void OnReflectorChanged() override;
49 base::Closure CreateCompositionStartedCallback() override; 52 base::Closure CreateCompositionStartedCallback() override;
50 void OnGpuSwapBuffersCompleted( 53 void OnGpuSwapBuffersCompleted(
51 const std::vector<ui::LatencyInfo>& latency_info, 54 const std::vector<ui::LatencyInfo>& latency_info,
52 gfx::SwapResult result, 55 gfx::SwapResult result,
53 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) override{}; 56 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) override{};
54 #if defined(OS_MACOSX) 57 #if defined(OS_MACOSX)
55 void SetSurfaceSuspendedForRecycle(bool suspended) override {}; 58 void SetSurfaceSuspendedForRecycle(bool suspended) override {};
56 #endif 59 #endif
57 60
58 uint32_t fbo_; 61 uint32_t fbo_;
59 bool is_backbuffer_discarded_; 62 bool is_backbuffer_discarded_;
60 std::unique_ptr<ReflectorTexture> reflector_texture_; 63 std::unique_ptr<ReflectorTexture> reflector_texture_;
61 64
62 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> 65 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface>
63 weak_ptr_factory_; 66 weak_ptr_factory_;
64 67
65 private: 68 private:
66 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); 69 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface);
67 }; 70 };
68 71
69 } // namespace content 72 } // namespace content
70 73
71 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC E_H_ 74 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC E_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698