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

Side by Side Diff: cc/output/delegating_renderer.h

Issue 2096493002: Make cc::CompositorFrames movable [Part 1 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's nits 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
« no previous file with comments | « cc/output/compositor_frame_metadata.cc ('k') | cc/output/delegating_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 18 matching lines...) Expand all
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::Rect& device_viewport_rect, 33 const gfx::Rect& device_viewport_rect,
34 const gfx::Rect& device_clip_rect, 34 const gfx::Rect& device_clip_rect,
35 bool disable_picture_quad_image_filtering) override; 35 bool disable_picture_quad_image_filtering) override;
36 36
37 void Finish() override {} 37 void Finish() override {}
38 38
39 void SwapBuffers(const CompositorFrameMetadata& metadata) override; 39 void SwapBuffers(CompositorFrameMetadata metadata) override;
40 void ReceiveSwapBuffersAck(const CompositorFrameAck&) override; 40 void ReceiveSwapBuffersAck(const CompositorFrameAck&) override;
41 41
42 private: 42 private:
43 DelegatingRenderer(RendererClient* client, 43 DelegatingRenderer(RendererClient* client,
44 const RendererSettings* settings, 44 const RendererSettings* settings,
45 OutputSurface* output_surface, 45 OutputSurface* output_surface,
46 ResourceProvider* resource_provider); 46 ResourceProvider* resource_provider);
47 47
48 void DidChangeVisibility() override; 48 void DidChangeVisibility() override;
49 49
50 OutputSurface* output_surface_; 50 OutputSurface* output_surface_;
51 ResourceProvider* resource_provider_; 51 ResourceProvider* resource_provider_;
52 RendererCapabilitiesImpl capabilities_; 52 RendererCapabilitiesImpl capabilities_;
53 std::unique_ptr<DelegatedFrameData> delegated_frame_data_; 53 std::unique_ptr<DelegatedFrameData> delegated_frame_data_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer); 55 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer);
56 }; 56 };
57 57
58 } // namespace cc 58 } // namespace cc
59 59
60 #endif // CC_OUTPUT_DELEGATING_RENDERER_H_ 60 #endif // CC_OUTPUT_DELEGATING_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/compositor_frame_metadata.cc ('k') | cc/output/delegating_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698