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

Side by Side Diff: cc/output/gl_renderer.cc

Issue 2158183002: Remove some unused members from GLRenderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 context_support_(output_surface->context_provider()->ContextSupport()), 323 context_support_(output_surface->context_provider()->ContextSupport()),
324 texture_mailbox_deleter_(texture_mailbox_deleter), 324 texture_mailbox_deleter_(texture_mailbox_deleter),
325 is_backbuffer_discarded_(false), 325 is_backbuffer_discarded_(false),
326 is_scissor_enabled_(false), 326 is_scissor_enabled_(false),
327 scissor_rect_needs_reset_(true), 327 scissor_rect_needs_reset_(true),
328 stencil_shadow_(false), 328 stencil_shadow_(false),
329 blend_shadow_(false), 329 blend_shadow_(false),
330 highp_threshold_min_(highp_threshold_min), 330 highp_threshold_min_(highp_threshold_min),
331 highp_threshold_cache_(0), 331 highp_threshold_cache_(0),
332 use_sync_query_(false), 332 use_sync_query_(false),
333 on_demand_tile_raster_resource_id_(0),
334 bound_geometry_(NO_BINDING) { 333 bound_geometry_(NO_BINDING) {
335 DCHECK(gl_); 334 DCHECK(gl_);
336 DCHECK(context_support_); 335 DCHECK(context_support_);
337 336
338 const auto& context_caps = 337 const auto& context_caps =
339 output_surface_->context_provider()->ContextCapabilities(); 338 output_surface_->context_provider()->ContextCapabilities();
340 339
341 capabilities_.using_partial_swap = 340 capabilities_.using_partial_swap =
342 settings_->partial_swap_enabled && context_caps.post_sub_buffer; 341 settings_->partial_swap_enabled && context_caps.post_sub_buffer;
343 capabilities_.allow_empty_swap = 342 capabilities_.allow_empty_swap =
(...skipping 3221 matching lines...) Expand 10 before | Expand all | Expand 10 after
3565 video_stream_texture_program_[i].Cleanup(gl_); 3564 video_stream_texture_program_[i].Cleanup(gl_);
3566 } 3565 }
3567 3566
3568 debug_border_program_.Cleanup(gl_); 3567 debug_border_program_.Cleanup(gl_);
3569 solid_color_program_.Cleanup(gl_); 3568 solid_color_program_.Cleanup(gl_);
3570 solid_color_program_aa_.Cleanup(gl_); 3569 solid_color_program_aa_.Cleanup(gl_);
3571 3570
3572 if (offscreen_framebuffer_id_) 3571 if (offscreen_framebuffer_id_)
3573 gl_->DeleteFramebuffers(1, &offscreen_framebuffer_id_); 3572 gl_->DeleteFramebuffers(1, &offscreen_framebuffer_id_);
3574 3573
3575 if (on_demand_tile_raster_resource_id_)
3576 resource_provider_->DeleteResource(on_demand_tile_raster_resource_id_);
3577
3578 ReleaseRenderPassTextures(); 3574 ReleaseRenderPassTextures();
3579 } 3575 }
3580 3576
3581 void GLRenderer::ReinitializeGLState() { 3577 void GLRenderer::ReinitializeGLState() {
3582 is_scissor_enabled_ = false; 3578 is_scissor_enabled_ = false;
3583 scissor_rect_needs_reset_ = true; 3579 scissor_rect_needs_reset_ = true;
3584 stencil_shadow_ = false; 3580 stencil_shadow_ = false;
3585 blend_shadow_ = true; 3581 blend_shadow_ = true;
3586 program_shadow_ = 0; 3582 program_shadow_ = 0;
3587 3583
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
3687 texture_id = pending_overlay_resources_.back()->texture_id(); 3683 texture_id = pending_overlay_resources_.back()->texture_id();
3688 } 3684 }
3689 3685
3690 context_support_->ScheduleOverlayPlane( 3686 context_support_->ScheduleOverlayPlane(
3691 overlay.plane_z_order, overlay.transform, texture_id, 3687 overlay.plane_z_order, overlay.transform, texture_id,
3692 ToNearestRect(overlay.display_rect), overlay.uv_rect); 3688 ToNearestRect(overlay.display_rect), overlay.uv_rect);
3693 } 3689 }
3694 } 3690 }
3695 3691
3696 } // namespace cc 3692 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/gl_renderer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698