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

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

Issue 145313006: [#7] Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/output_surface.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_OUTPUT_SURFACE_H_ 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_H_
6 #define CC_OUTPUT_OUTPUT_SURFACE_H_ 6 #define CC_OUTPUT_OUTPUT_SURFACE_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 void InitializeBeginImplFrameEmulation( 107 void InitializeBeginImplFrameEmulation(
108 base::SingleThreadTaskRunner* task_runner, 108 base::SingleThreadTaskRunner* task_runner,
109 bool throttle_frame_production, 109 bool throttle_frame_production,
110 base::TimeDelta interval); 110 base::TimeDelta interval);
111 111
112 void SetMaxFramesPending(int max_frames_pending); 112 void SetMaxFramesPending(int max_frames_pending);
113 113
114 virtual void EnsureBackbuffer(); 114 virtual void EnsureBackbuffer();
115 virtual void DiscardBackbuffer(); 115 virtual void DiscardBackbuffer();
116 116
117 virtual void Reshape(gfx::Size size, float scale_factor); 117 virtual void Reshape(const gfx::Size& size, float scale_factor);
118 virtual gfx::Size SurfaceSize() const; 118 virtual gfx::Size SurfaceSize() const;
119 119
120 virtual void BindFramebuffer(); 120 virtual void BindFramebuffer();
121 121
122 // The implementation may destroy or steal the contents of the CompositorFrame 122 // The implementation may destroy or steal the contents of the CompositorFrame
123 // passed in (though it will not take ownership of the CompositorFrame 123 // passed in (though it will not take ownership of the CompositorFrame
124 // itself). 124 // itself).
125 virtual void SwapBuffers(CompositorFrame* frame); 125 virtual void SwapBuffers(CompositorFrame* frame);
126 126
127 // Notifies frame-rate smoothness preference. If true, all non-critical 127 // Notifies frame-rate smoothness preference. If true, all non-critical
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 std::deque<unsigned> available_gpu_latency_query_ids_; 211 std::deque<unsigned> available_gpu_latency_query_ids_;
212 std::deque<unsigned> pending_gpu_latency_query_ids_; 212 std::deque<unsigned> pending_gpu_latency_query_ids_;
213 RollingTimeDeltaHistory gpu_latency_history_; 213 RollingTimeDeltaHistory gpu_latency_history_;
214 214
215 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 215 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
216 }; 216 };
217 217
218 } // namespace cc 218 } // namespace cc
219 219
220 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 220 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698