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

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

Issue 13852023: Reland "gpu: Fix Vivante's "hisilicon" GPUs" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@HUAWEI_revert
Patch Set: Created 7 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
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 2548 matching lines...) Expand 10 before | Expand all | Expand 10 after
2559 2559
2560 DoBindBuffer(GL_ARRAY_BUFFER, 0); 2560 DoBindBuffer(GL_ARRAY_BUFFER, 0);
2561 DoBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); 2561 DoBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
2562 DoBindFramebuffer(GL_FRAMEBUFFER, 0); 2562 DoBindFramebuffer(GL_FRAMEBUFFER, 0);
2563 DoBindRenderbuffer(GL_RENDERBUFFER, 0); 2563 DoBindRenderbuffer(GL_RENDERBUFFER, 0);
2564 2564
2565 if (feature_info_->workarounds().reverse_point_sprite_coord_origin) { 2565 if (feature_info_->workarounds().reverse_point_sprite_coord_origin) {
2566 glPointParameteri(GL_POINT_SPRITE_COORD_ORIGIN, GL_LOWER_LEFT); 2566 glPointParameteri(GL_POINT_SPRITE_COORD_ORIGIN, GL_LOWER_LEFT);
2567 } 2567 }
2568 2568
2569 #if defined(OS_ANDROID)
2570 if (feature_info_->workarounds().makecurrent_recreates_surfaces) {
2571 context_->SetRecreateSurfaceOnMakeCurrent();
2572 }
2573 #endif
2574
2569 // Only compositor contexts are known to use only the subset of GL 2575 // Only compositor contexts are known to use only the subset of GL
2570 // that can be safely migrated between the iGPU and the dGPU. Mark 2576 // that can be safely migrated between the iGPU and the dGPU. Mark
2571 // those contexts as safe to forcibly transition between the GPUs. 2577 // those contexts as safe to forcibly transition between the GPUs.
2572 // http://crbug.com/180876, http://crbug.com/227228 2578 // http://crbug.com/180876, http://crbug.com/227228
2573 if (!offscreen) 2579 if (!offscreen)
2574 context_->SetSafeToForceGpuSwitch(); 2580 context_->SetSafeToForceGpuSwitch();
2575 2581
2576 // Create a delegate to perform async pixel transfers. 2582 // Create a delegate to perform async pixel transfers.
2577 async_pixel_transfer_delegate_ = 2583 async_pixel_transfer_delegate_ =
2578 gfx::AsyncPixelTransferDelegate::Create(context.get()); 2584 gfx::AsyncPixelTransferDelegate::Create(context.get());
(...skipping 7925 matching lines...) Expand 10 before | Expand all | Expand 10 after
10504 return error::kNoError; 10510 return error::kNoError;
10505 } 10511 }
10506 10512
10507 // Include the auto-generated part of this file. We split this because it means 10513 // Include the auto-generated part of this file. We split this because it means
10508 // we can easily edit the non-auto generated parts right here in this file 10514 // we can easily edit the non-auto generated parts right here in this file
10509 // instead of having to edit some template or the code generator. 10515 // instead of having to edit some template or the code generator.
10510 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 10516 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
10511 10517
10512 } // namespace gles2 10518 } // namespace gles2
10513 } // namespace gpu 10519 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698