OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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 #include "cc/output/gl_renderer.h" | 5 #include "cc/output/gl_renderer.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 gpu::gles2::GLES2Interface* gl_; | 306 gpu::gles2::GLES2Interface* gl_; |
307 unsigned query_id_; | 307 unsigned query_id_; |
308 bool is_pending_; | 308 bool is_pending_; |
309 base::WeakPtrFactory<SyncQuery> weak_ptr_factory_; | 309 base::WeakPtrFactory<SyncQuery> weak_ptr_factory_; |
310 | 310 |
311 DISALLOW_COPY_AND_ASSIGN(SyncQuery); | 311 DISALLOW_COPY_AND_ASSIGN(SyncQuery); |
312 }; | 312 }; |
313 | 313 |
314 scoped_ptr<GLRenderer> GLRenderer::Create( | 314 scoped_ptr<GLRenderer> GLRenderer::Create( |
315 RendererClient* client, | 315 RendererClient* client, |
316 const LayerTreeSettings* settings, | 316 const RendererSettings* settings, |
317 OutputSurface* output_surface, | 317 OutputSurface* output_surface, |
318 ResourceProvider* resource_provider, | 318 ResourceProvider* resource_provider, |
319 TextureMailboxDeleter* texture_mailbox_deleter, | 319 TextureMailboxDeleter* texture_mailbox_deleter, |
320 int highp_threshold_min) { | 320 int highp_threshold_min) { |
321 return make_scoped_ptr(new GLRenderer(client, | 321 return make_scoped_ptr(new GLRenderer(client, |
322 settings, | 322 settings, |
323 output_surface, | 323 output_surface, |
324 resource_provider, | 324 resource_provider, |
325 texture_mailbox_deleter, | 325 texture_mailbox_deleter, |
326 highp_threshold_min)); | 326 highp_threshold_min)); |
327 } | 327 } |
328 | 328 |
329 GLRenderer::GLRenderer(RendererClient* client, | 329 GLRenderer::GLRenderer(RendererClient* client, |
330 const LayerTreeSettings* settings, | 330 const RendererSettings* settings, |
331 OutputSurface* output_surface, | 331 OutputSurface* output_surface, |
332 ResourceProvider* resource_provider, | 332 ResourceProvider* resource_provider, |
333 TextureMailboxDeleter* texture_mailbox_deleter, | 333 TextureMailboxDeleter* texture_mailbox_deleter, |
334 int highp_threshold_min) | 334 int highp_threshold_min) |
335 : DirectRenderer(client, settings, output_surface, resource_provider), | 335 : DirectRenderer(client, settings, output_surface, resource_provider), |
336 offscreen_framebuffer_id_(0), | 336 offscreen_framebuffer_id_(0), |
337 shared_geometry_quad_(QuadVertexRect()), | 337 shared_geometry_quad_(QuadVertexRect()), |
338 gl_(output_surface->context_provider()->ContextGL()), | 338 gl_(output_surface->context_provider()->ContextGL()), |
339 context_support_(output_surface->context_provider()->ContextSupport()), | 339 context_support_(output_surface->context_provider()->ContextSupport()), |
340 texture_mailbox_deleter_(texture_mailbox_deleter), | 340 texture_mailbox_deleter_(texture_mailbox_deleter), |
(...skipping 3017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3358 context_support_->ScheduleOverlayPlane( | 3358 context_support_->ScheduleOverlayPlane( |
3359 overlay.plane_z_order, | 3359 overlay.plane_z_order, |
3360 overlay.transform, | 3360 overlay.transform, |
3361 pending_overlay_resources_.back()->texture_id(), | 3361 pending_overlay_resources_.back()->texture_id(), |
3362 overlay.display_rect, | 3362 overlay.display_rect, |
3363 overlay.uv_rect); | 3363 overlay.uv_rect); |
3364 } | 3364 } |
3365 } | 3365 } |
3366 | 3366 |
3367 } // namespace cc | 3367 } // namespace cc |
OLD | NEW |