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

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

Issue 251343002: Remove offscreen compositor contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-offscreencontext: include Created 6 years, 8 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 | Annotate | Revision Log
« 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 base::TimeDelta GpuLatencyEstimate(); 140 base::TimeDelta GpuLatencyEstimate();
141 141
142 // Get the class capable of informing cc of hardware overlay capability. 142 // Get the class capable of informing cc of hardware overlay capability.
143 OverlayCandidateValidator* overlay_candidate_validator() const { 143 OverlayCandidateValidator* overlay_candidate_validator() const {
144 return overlay_candidate_validator_.get(); 144 return overlay_candidate_validator_.get();
145 } 145 }
146 146
147 protected: 147 protected:
148 // Synchronously initialize context3d and enter hardware mode. 148 // Synchronously initialize context3d and enter hardware mode.
149 // This can only supported in threaded compositing mode. 149 // This can only supported in threaded compositing mode.
150 // |offscreen_context_provider| should match what is returned by
151 // LayerTreeClient::OffscreenContextProvider().
152 bool InitializeAndSetContext3d( 150 bool InitializeAndSetContext3d(
153 scoped_refptr<ContextProvider> context_provider, 151 scoped_refptr<ContextProvider> context_provider);
154 scoped_refptr<ContextProvider> offscreen_context_provider);
155 void ReleaseGL(); 152 void ReleaseGL();
156 153
157 void PostSwapBuffersComplete(); 154 void PostSwapBuffersComplete();
158 155
159 struct OutputSurface::Capabilities capabilities_; 156 struct OutputSurface::Capabilities capabilities_;
160 scoped_refptr<ContextProvider> context_provider_; 157 scoped_refptr<ContextProvider> context_provider_;
161 scoped_ptr<SoftwareOutputDevice> software_device_; 158 scoped_ptr<SoftwareOutputDevice> software_device_;
162 scoped_ptr<OverlayCandidateValidator> overlay_candidate_validator_; 159 scoped_ptr<OverlayCandidateValidator> overlay_candidate_validator_;
163 gfx::Size surface_size_; 160 gfx::Size surface_size_;
164 float device_scale_factor_; 161 float device_scale_factor_;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 std::deque<unsigned> available_gpu_latency_query_ids_; 214 std::deque<unsigned> available_gpu_latency_query_ids_;
218 std::deque<unsigned> pending_gpu_latency_query_ids_; 215 std::deque<unsigned> pending_gpu_latency_query_ids_;
219 RollingTimeDeltaHistory gpu_latency_history_; 216 RollingTimeDeltaHistory gpu_latency_history_;
220 217
221 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 218 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
222 }; 219 };
223 220
224 } // namespace cc 221 } // namespace cc
225 222
226 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 223 #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