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

Side by Side Diff: components/display_compositor/gpu_root_compositor_frame_sink.h

Issue 2669183002: Seems incorrect to se device_scale_factor in SetLocalSurfaceId.
Patch Set: Seems incorrect to set device_scale_factor in SetLocalSurfaceId. Added new function SetDeviceScaleF… Created 3 years, 10 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 COMPONENTS_DISPLAY_COMPOSITOR_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_
6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_ 6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include "cc/ipc/display_compositor.mojom.h" 8 #include "cc/ipc/display_compositor.mojom.h"
9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" 9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h"
10 #include "cc/surfaces/compositor_frame_sink_support_client.h" 10 #include "cc/surfaces/compositor_frame_sink_support_client.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 cc::mojom::MojoCompositorFrameSinkClientPtr client, 44 cc::mojom::MojoCompositorFrameSinkClientPtr client,
45 cc::mojom::DisplayPrivateAssociatedRequest display_private_request); 45 cc::mojom::DisplayPrivateAssociatedRequest display_private_request);
46 46
47 ~GpuRootCompositorFrameSink() override; 47 ~GpuRootCompositorFrameSink() override;
48 48
49 // cc::mojom::DisplayPrivate: 49 // cc::mojom::DisplayPrivate:
50 void SetDisplayVisible(bool visible) override; 50 void SetDisplayVisible(bool visible) override;
51 void ResizeDisplay(const gfx::Size& size) override; 51 void ResizeDisplay(const gfx::Size& size) override;
52 void SetDisplayColorSpace(const gfx::ColorSpace& color_space) override; 52 void SetDisplayColorSpace(const gfx::ColorSpace& color_space) override;
53 void SetOutputIsSecure(bool secure) override; 53 void SetOutputIsSecure(bool secure) override;
54 void SetLocalSurfaceId(const cc::LocalSurfaceId& local_surface_id, 54 void SetLocalSurfaceId(const cc::LocalSurfaceId& local_surface_id) override;
55 float scale_factor) override; 55 void SetDeviceScaleFactor(float scale_factor) override;
56 56
57 // cc::mojom::MojoCompositorFrameSink: 57 // cc::mojom::MojoCompositorFrameSink:
58 void EvictFrame() override; 58 void EvictFrame() override;
59 void SetNeedsBeginFrame(bool needs_begin_frame) override; 59 void SetNeedsBeginFrame(bool needs_begin_frame) override;
60 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, 60 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
61 cc::CompositorFrame frame) override; 61 cc::CompositorFrame frame) override;
62 void Require(const cc::LocalSurfaceId& local_surface_id, 62 void Require(const cc::LocalSurfaceId& local_surface_id,
63 const cc::SurfaceSequence& sequence) override; 63 const cc::SurfaceSequence& sequence) override;
64 void Satisfy(const cc::SurfaceSequence& sequence) override; 64 void Satisfy(const cc::SurfaceSequence& sequence) override;
65 65
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> 104 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate>
105 compositor_frame_sink_private_binding_; 105 compositor_frame_sink_private_binding_;
106 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_; 106 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_;
107 107
108 DISALLOW_COPY_AND_ASSIGN(GpuRootCompositorFrameSink); 108 DISALLOW_COPY_AND_ASSIGN(GpuRootCompositorFrameSink);
109 }; 109 };
110 110
111 } // namespace display_compositor 111 } // namespace display_compositor
112 112
113 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_ 113 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« no previous file with comments | « cc/test/test_compositor_frame_sink.cc ('k') | components/display_compositor/gpu_root_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698