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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 66033009: [Android] Add workaround to unbind gpu memory buffer only on NVIDIA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: SetReleaseAfterUse Created 7 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 2464 matching lines...) Expand 10 before | Expand all | Expand 10 after
2475 } 2475 }
2476 2476
2477 if (feature_info_->workarounds().reverse_point_sprite_coord_origin) { 2477 if (feature_info_->workarounds().reverse_point_sprite_coord_origin) {
2478 glPointParameteri(GL_POINT_SPRITE_COORD_ORIGIN, GL_LOWER_LEFT); 2478 glPointParameteri(GL_POINT_SPRITE_COORD_ORIGIN, GL_LOWER_LEFT);
2479 } 2479 }
2480 2480
2481 if (feature_info_->workarounds().unbind_fbo_on_context_switch) { 2481 if (feature_info_->workarounds().unbind_fbo_on_context_switch) {
2482 context_->SetUnbindFboOnMakeCurrent(); 2482 context_->SetUnbindFboOnMakeCurrent();
2483 } 2483 }
2484 2484
2485 if (feature_info_->workarounds().unbind_image_target_texture_before_lock) {
2486 image_manager()->SetReleaseAfterUse();
2487 }
2488
2485 // Only compositor contexts are known to use only the subset of GL 2489 // Only compositor contexts are known to use only the subset of GL
2486 // that can be safely migrated between the iGPU and the dGPU. Mark 2490 // that can be safely migrated between the iGPU and the dGPU. Mark
2487 // those contexts as safe to forcibly transition between the GPUs. 2491 // those contexts as safe to forcibly transition between the GPUs.
2488 // http://crbug.com/180876, http://crbug.com/227228 2492 // http://crbug.com/180876, http://crbug.com/227228
2489 if (!offscreen) 2493 if (!offscreen)
2490 context_->SetSafeToForceGpuSwitch(); 2494 context_->SetSafeToForceGpuSwitch();
2491 2495
2492 async_pixel_transfer_manager_.reset( 2496 async_pixel_transfer_manager_.reset(
2493 AsyncPixelTransferManager::Create(context.get())); 2497 AsyncPixelTransferManager::Create(context.get()));
2494 async_pixel_transfer_manager_->Initialize(texture_manager()); 2498 async_pixel_transfer_manager_->Initialize(texture_manager());
(...skipping 7904 matching lines...) Expand 10 before | Expand all | Expand 10 after
10399 DoDidUseTexImageIfNeeded(texture, texture->target()); 10403 DoDidUseTexImageIfNeeded(texture, texture->target());
10400 } 10404 }
10401 10405
10402 // Include the auto-generated part of this file. We split this because it means 10406 // Include the auto-generated part of this file. We split this because it means
10403 // we can easily edit the non-auto generated parts right here in this file 10407 // we can easily edit the non-auto generated parts right here in this file
10404 // instead of having to edit some template or the code generator. 10408 // instead of having to edit some template or the code generator.
10405 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 10409 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
10406 10410
10407 } // namespace gles2 10411 } // namespace gles2
10408 } // namespace gpu 10412 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/image_manager.h » ('j') | gpu/config/gpu_driver_bug_list_json.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698