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

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

Issue 675083002: Add cc::RendererSettings for use in with cc::Display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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_RENDERER_H_ 5 #ifndef CC_OUTPUT_RENDERER_H_
6 #define CC_OUTPUT_RENDERER_H_ 6 #define CC_OUTPUT_RENDERER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/base/scoped_ptr_vector.h" 10 #include "cc/base/scoped_ptr_vector.h"
11 #include "cc/trees/layer_tree_host.h" 11 #include "cc/trees/layer_tree_host.h"
jamesr 2014/10/27 05:11:37 can you get rid of this #include now?
12 12
13 namespace cc { 13 namespace cc {
14 14
15 class CompositorFrameAck; 15 class CompositorFrameAck;
16 class CompositorFrameMetadata; 16 class CompositorFrameMetadata;
17 class RenderPass; 17 class RenderPass;
18 class RenderPassId; 18 class RenderPassId;
19 class ScopedResource; 19 class ScopedResource;
20 class Task; 20 class Task;
21 21
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual void DoNoOp() {} 73 virtual void DoNoOp() {}
74 74
75 // Puts backbuffer onscreen. 75 // Puts backbuffer onscreen.
76 virtual void SwapBuffers(const CompositorFrameMetadata& metadata) = 0; 76 virtual void SwapBuffers(const CompositorFrameMetadata& metadata) = 0;
77 virtual void ReceiveSwapBuffersAck(const CompositorFrameAck& ack) {} 77 virtual void ReceiveSwapBuffersAck(const CompositorFrameAck& ack) {}
78 78
79 bool visible() const { return visible_; } 79 bool visible() const { return visible_; }
80 void SetVisible(bool visible); 80 void SetVisible(bool visible);
81 81
82 protected: 82 protected:
83 explicit Renderer(RendererClient* client, const LayerTreeSettings* settings) 83 Renderer(RendererClient* client, const RendererSettings* settings)
84 : client_(client), settings_(settings), visible_(true) {} 84 : client_(client), settings_(settings), visible_(true) {}
85 85
86 virtual void DidChangeVisibility() = 0; 86 virtual void DidChangeVisibility() = 0;
87 87
88 RendererClient* client_; 88 RendererClient* client_;
89 const LayerTreeSettings* settings_; 89 const RendererSettings* settings_;
90 bool visible_; 90 bool visible_;
91 91
92 private: 92 private:
93 DISALLOW_COPY_AND_ASSIGN(Renderer); 93 DISALLOW_COPY_AND_ASSIGN(Renderer);
94 }; 94 };
95 95
96 } // namespace cc 96 } // namespace cc
97 97
98 #endif // CC_OUTPUT_RENDERER_H_ 98 #endif // CC_OUTPUT_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698