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

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

Issue 184573002: Use MSAA in GPU rasterization if Skia suggests it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments Created 6 years, 9 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 | « no previous file | cc/output/output_surface.cc » ('j') | cc/resources/resource_provider.cc » ('J')
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(const 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 float SurfaceScaleFactor() const;
119 120
120 virtual void BindFramebuffer(); 121 virtual void BindFramebuffer();
121 122
122 // The implementation may destroy or steal the contents of the CompositorFrame 123 // The implementation may destroy or steal the contents of the CompositorFrame
123 // passed in (though it will not take ownership of the CompositorFrame 124 // passed in (though it will not take ownership of the CompositorFrame
124 // itself). 125 // itself).
125 virtual void SwapBuffers(CompositorFrame* frame); 126 virtual void SwapBuffers(CompositorFrame* frame);
126 127
127 // Notifies frame-rate smoothness preference. If true, all non-critical 128 // Notifies frame-rate smoothness preference. If true, all non-critical
128 // processing should be stopped, or lowered in priority. 129 // processing should be stopped, or lowered in priority.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 std::deque<unsigned> available_gpu_latency_query_ids_; 212 std::deque<unsigned> available_gpu_latency_query_ids_;
212 std::deque<unsigned> pending_gpu_latency_query_ids_; 213 std::deque<unsigned> pending_gpu_latency_query_ids_;
213 RollingTimeDeltaHistory gpu_latency_history_; 214 RollingTimeDeltaHistory gpu_latency_history_;
214 215
215 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 216 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
216 }; 217 };
217 218
218 } // namespace cc 219 } // namespace cc
219 220
220 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 221 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/output_surface.cc » ('j') | cc/resources/resource_provider.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698