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

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

Issue 1469863003: Cleanup SurfaceVisibility code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase.. Created 5 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/in_process_command_buffer.h" 5 #include "gpu/command_buffer/service/in_process_command_buffer.h"
6 6
7 #include <queue> 7 #include <queue>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 gles2::QueryManager* query_manager_ = decoder_->GetQueryManager(); 960 gles2::QueryManager* query_manager_ = decoder_->GetQueryManager();
961 DCHECK(query_manager_); 961 DCHECK(query_manager_);
962 962
963 gles2::QueryManager::Query* query = query_manager_->GetQuery(query_id); 963 gles2::QueryManager::Query* query = query_manager_->GetQuery(query_id);
964 if (!query) 964 if (!query)
965 callback.Run(); 965 callback.Run();
966 else 966 else
967 query->AddCallback(callback); 967 query->AddCallback(callback);
968 } 968 }
969 969
970 void InProcessCommandBuffer::SetSurfaceVisible(bool visible) {}
971
972 void InProcessCommandBuffer::SetLock(base::Lock*) { 970 void InProcessCommandBuffer::SetLock(base::Lock*) {
973 } 971 }
974 972
975 bool InProcessCommandBuffer::IsGpuChannelLost() { 973 bool InProcessCommandBuffer::IsGpuChannelLost() {
976 // There is no such channel to lose for in-process contexts. This only 974 // There is no such channel to lose for in-process contexts. This only
977 // makes sense for out-of-process command buffers. 975 // makes sense for out-of-process command buffers.
978 return false; 976 return false;
979 } 977 }
980 978
981 CommandBufferNamespace InProcessCommandBuffer::GetNamespaceID() const { 979 CommandBufferNamespace InProcessCommandBuffer::GetNamespaceID() const {
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 framebuffer_completeness_cache_ = 1133 framebuffer_completeness_cache_ =
1136 new gpu::gles2::FramebufferCompletenessCache; 1134 new gpu::gles2::FramebufferCompletenessCache;
1137 return framebuffer_completeness_cache_; 1135 return framebuffer_completeness_cache_;
1138 } 1136 }
1139 1137
1140 SyncPointManager* GpuInProcessThread::sync_point_manager() { 1138 SyncPointManager* GpuInProcessThread::sync_point_manager() {
1141 return sync_point_manager_; 1139 return sync_point_manager_;
1142 } 1140 }
1143 1141
1144 } // namespace gpu 1142 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.h ('k') | gpu/command_buffer/tests/gl_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698