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

Side by Side Diff: cc/output/delegating_renderer.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: Fix ozone build 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 CC_OUTPUT_DELEGATING_RENDERER_H_ 5 #ifndef CC_OUTPUT_DELEGATING_RENDERER_H_
6 #define CC_OUTPUT_DELEGATING_RENDERER_H_ 6 #define CC_OUTPUT_DELEGATING_RENDERER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 12 matching lines...) Expand all
23 RendererClient* client, 23 RendererClient* client,
24 const RendererSettings* settings, 24 const RendererSettings* settings,
25 OutputSurface* output_surface, 25 OutputSurface* output_surface,
26 ResourceProvider* resource_provider); 26 ResourceProvider* resource_provider);
27 ~DelegatingRenderer() override; 27 ~DelegatingRenderer() override;
28 28
29 const RendererCapabilitiesImpl& Capabilities() const override; 29 const RendererCapabilitiesImpl& Capabilities() const override;
30 30
31 void DrawFrame(RenderPassList* render_passes_in_draw_order, 31 void DrawFrame(RenderPassList* render_passes_in_draw_order,
32 float device_scale_factor, 32 float device_scale_factor,
33 const gfx::ColorProfile& device_color_profile,
33 const gfx::Rect& device_viewport_rect, 34 const gfx::Rect& device_viewport_rect,
34 const gfx::Rect& device_clip_rect, 35 const gfx::Rect& device_clip_rect,
35 bool disable_picture_quad_image_filtering) override; 36 bool disable_picture_quad_image_filtering) override;
36 37
37 void Finish() override {} 38 void Finish() override {}
38 39
39 void SwapBuffers(CompositorFrameMetadata metadata) override; 40 void SwapBuffers(CompositorFrameMetadata metadata) override;
40 void ReceiveSwapBuffersAck(const CompositorFrameAck&) override; 41 void ReceiveSwapBuffersAck(const CompositorFrameAck&) override;
41 42
42 private: 43 private:
43 DelegatingRenderer(RendererClient* client, 44 DelegatingRenderer(RendererClient* client,
44 const RendererSettings* settings, 45 const RendererSettings* settings,
45 OutputSurface* output_surface, 46 OutputSurface* output_surface,
46 ResourceProvider* resource_provider); 47 ResourceProvider* resource_provider);
47 48
48 void DidChangeVisibility() override; 49 void DidChangeVisibility() override;
49 50
50 OutputSurface* output_surface_; 51 OutputSurface* output_surface_;
51 ResourceProvider* resource_provider_; 52 ResourceProvider* resource_provider_;
52 RendererCapabilitiesImpl capabilities_; 53 RendererCapabilitiesImpl capabilities_;
53 std::unique_ptr<DelegatedFrameData> delegated_frame_data_; 54 std::unique_ptr<DelegatedFrameData> delegated_frame_data_;
54 55
55 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer); 56 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer);
56 }; 57 };
57 58
58 } // namespace cc 59 } // namespace cc
59 60
60 #endif // CC_OUTPUT_DELEGATING_RENDERER_H_ 61 #endif // CC_OUTPUT_DELEGATING_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698