Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 2822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2833 } | 2833 } |
| 2834 | 2834 |
| 2835 return false; | 2835 return false; |
| 2836 } | 2836 } |
| 2837 | 2837 |
| 2838 ProcessFinishedAsyncTransfers(); | 2838 ProcessFinishedAsyncTransfers(); |
| 2839 if (workarounds().flush_on_context_switch) | 2839 if (workarounds().flush_on_context_switch) |
| 2840 glFlush(); | 2840 glFlush(); |
| 2841 | 2841 |
| 2842 // Rebind the FBO if it was unbound by the context. | 2842 // Rebind the FBO if it was unbound by the context. |
| 2843 /* | |
| 2843 if (workarounds().unbind_fbo_on_context_switch) | 2844 if (workarounds().unbind_fbo_on_context_switch) |
| 2844 RestoreFramebufferBindings(); | 2845 RestoreFramebufferBindings(); |
|
no sievers
2013/05/16 00:09:55
This should only be set on Vivante gpus. Why did y
joth
2013/05/16 00:20:44
Seems it's being set on Imagination gpus too?
gpu
| |
| 2846 */ | |
| 2845 | 2847 |
| 2846 return true; | 2848 return true; |
| 2847 } | 2849 } |
| 2848 | 2850 |
| 2849 void GLES2DecoderImpl::ProcessFinishedAsyncTransfers() { | 2851 void GLES2DecoderImpl::ProcessFinishedAsyncTransfers() { |
| 2850 if (engine() && query_manager_.get()) | 2852 if (engine() && query_manager_.get()) |
| 2851 query_manager_->ProcessPendingTransferQueries(); | 2853 query_manager_->ProcessPendingTransferQueries(); |
| 2852 | 2854 |
| 2853 // TODO(epenner): Is there a better place to do this? | 2855 // TODO(epenner): Is there a better place to do this? |
| 2854 // This needs to occur before we execute any batch of commands | 2856 // This needs to occur before we execute any batch of commands |
| (...skipping 7564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 10419 return error::kNoError; | 10421 return error::kNoError; |
| 10420 } | 10422 } |
| 10421 | 10423 |
| 10422 // Include the auto-generated part of this file. We split this because it means | 10424 // Include the auto-generated part of this file. We split this because it means |
| 10423 // we can easily edit the non-auto generated parts right here in this file | 10425 // we can easily edit the non-auto generated parts right here in this file |
| 10424 // instead of having to edit some template or the code generator. | 10426 // instead of having to edit some template or the code generator. |
| 10425 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 10427 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 10426 | 10428 |
| 10427 } // namespace gles2 | 10429 } // namespace gles2 |
| 10428 } // namespace gpu | 10430 } // namespace gpu |
| OLD | NEW |