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

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

Issue 754433003: Update from https://crrev.com/305340 (Closed) Base URL: git@github.com:domokit/mojo.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
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | cc/output/renderer_settings.h » ('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_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"
(...skipping 62 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
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | cc/output/renderer_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698