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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 gpu::gles2::GLES2Interface* gl_; | 283 gpu::gles2::GLES2Interface* gl_; |
284 unsigned query_id_; | 284 unsigned query_id_; |
285 bool is_pending_; | 285 bool is_pending_; |
286 base::WeakPtrFactory<SyncQuery> weak_ptr_factory_; | 286 base::WeakPtrFactory<SyncQuery> weak_ptr_factory_; |
287 | 287 |
288 DISALLOW_COPY_AND_ASSIGN(SyncQuery); | 288 DISALLOW_COPY_AND_ASSIGN(SyncQuery); |
289 }; | 289 }; |
290 | 290 |
291 scoped_ptr<GLRenderer> GLRenderer::Create( | 291 scoped_ptr<GLRenderer> GLRenderer::Create( |
292 RendererClient* client, | 292 RendererClient* client, |
293 const LayerTreeSettings* settings, | 293 const RendererSettings* settings, |
294 OutputSurface* output_surface, | 294 OutputSurface* output_surface, |
295 ResourceProvider* resource_provider, | 295 ResourceProvider* resource_provider, |
296 TextureMailboxDeleter* texture_mailbox_deleter, | 296 TextureMailboxDeleter* texture_mailbox_deleter, |
297 int highp_threshold_min) { | 297 int highp_threshold_min) { |
298 return make_scoped_ptr(new GLRenderer(client, | 298 return make_scoped_ptr(new GLRenderer(client, |
299 settings, | 299 settings, |
300 output_surface, | 300 output_surface, |
301 resource_provider, | 301 resource_provider, |
302 texture_mailbox_deleter, | 302 texture_mailbox_deleter, |
303 highp_threshold_min)); | 303 highp_threshold_min)); |
304 } | 304 } |
305 | 305 |
306 GLRenderer::GLRenderer(RendererClient* client, | 306 GLRenderer::GLRenderer(RendererClient* client, |
307 const LayerTreeSettings* settings, | 307 const RendererSettings* settings, |
308 OutputSurface* output_surface, | 308 OutputSurface* output_surface, |
309 ResourceProvider* resource_provider, | 309 ResourceProvider* resource_provider, |
310 TextureMailboxDeleter* texture_mailbox_deleter, | 310 TextureMailboxDeleter* texture_mailbox_deleter, |
311 int highp_threshold_min) | 311 int highp_threshold_min) |
312 : DirectRenderer(client, settings, output_surface, resource_provider), | 312 : DirectRenderer(client, settings, output_surface, resource_provider), |
313 offscreen_framebuffer_id_(0), | 313 offscreen_framebuffer_id_(0), |
314 shared_geometry_quad_(QuadVertexRect()), | 314 shared_geometry_quad_(QuadVertexRect()), |
315 gl_(output_surface->context_provider()->ContextGL()), | 315 gl_(output_surface->context_provider()->ContextGL()), |
316 context_support_(output_surface->context_provider()->ContextSupport()), | 316 context_support_(output_surface->context_provider()->ContextSupport()), |
317 texture_mailbox_deleter_(texture_mailbox_deleter), | 317 texture_mailbox_deleter_(texture_mailbox_deleter), |
(...skipping 2966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3284 context_support_->ScheduleOverlayPlane( | 3284 context_support_->ScheduleOverlayPlane( |
3285 overlay.plane_z_order, | 3285 overlay.plane_z_order, |
3286 overlay.transform, | 3286 overlay.transform, |
3287 pending_overlay_resources_.back()->texture_id(), | 3287 pending_overlay_resources_.back()->texture_id(), |
3288 overlay.display_rect, | 3288 overlay.display_rect, |
3289 overlay.uv_rect); | 3289 overlay.uv_rect); |
3290 } | 3290 } |
3291 } | 3291 } |
3292 | 3292 |
3293 } // namespace cc | 3293 } // namespace cc |
OLD | NEW |