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

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

Issue 1398003003: Prototype: NativeLayer renderer with GL fallback Base URL: https://chromium.googlesource.com/chromium/src.git@root
Patch Set: Created 5 years, 2 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/renderer.cc ('k') | cc/output/renderer_chain.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_OUTPUT_RENDERER_CHAIN_H_
6 #define CC_OUTPUT_RENDERER_CHAIN_H_
7
8 #include "cc/base/scoped_ptr_vector.h"
9 #include "cc/output/renderer.h"
10
11 namespace cc {
12
13 class CC_EXPORT RendererChain : public Renderer {
14 public:
15 static scoped_ptr<RendererChain> Create();
16 ~RendererChain() override;
17
18 void AddRenderer(scoped_ptr<Renderer> renderer);
19
20 // Renderer overrides.
21 const RendererCapabilitiesImpl& Capabilities() const override;
22 void DecideRenderPassAllocationsForFrame(
23 const RenderPassList& render_passes) override;
24 void DrawFrame(RenderPassList* render_passes_,
25 float scale_factor,
26 const gfx::Rect& viewport_rect,
27 const gfx::Rect& clip_rect,
28 bool disable_picture_quad_image_filtering) override;
29 void Finish() override;
30 void SwapBuffers(const CompositorFrameMetadata& metadata) override;
31
32 protected:
33 RendererChain();
34
35 // Renderer overrides.
36 void DidChangeVisibility() override;
37
38 private:
39 ScopedPtrVector<Renderer> renderers_;
40 Renderer* active_renderer_;
41
42 DISALLOW_COPY_AND_ASSIGN(RendererChain);
43 };
44
45 } // namespace cc
46
47 #endif // CC_OUTPUT_RENDERER_CHAIN_H_
OLDNEW
« no previous file with comments | « cc/output/renderer.cc ('k') | cc/output/renderer_chain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698