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

Side by Side Diff: gpu/command_buffer/client/share_group.cc

Issue 1916303003: Report lost context from GLES2Implementation based on share group state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lost-share-group: disconnect-channel Created 4 years, 7 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 | « gpu/command_buffer/client/share_group.h ('k') | gpu/command_buffer/common/constants.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/client/share_group.h" 5 #include "gpu/command_buffer/client/share_group.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <stack> 9 #include <stack>
10 #include <vector> 10 #include <vector>
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 id_handlers_[i].reset(new StrictIdHandler(i)); 367 id_handlers_[i].reset(new StrictIdHandler(i));
368 } 368 }
369 } 369 }
370 } 370 }
371 program_info_manager_.reset(new ProgramInfoManager); 371 program_info_manager_.reset(new ProgramInfoManager);
372 for (auto& range_id_handler : range_id_handlers_) { 372 for (auto& range_id_handler : range_id_handlers_) {
373 range_id_handler.reset(new RangeIdHandler()); 373 range_id_handler.reset(new RangeIdHandler());
374 } 374 }
375 } 375 }
376 376
377 void ShareGroup::set_program_info_manager(ProgramInfoManager* manager) { 377 void ShareGroup::Lose() {
378 base::AutoLock hold(lost_lock_);
379 lost_ = true;
380 }
381
382 bool ShareGroup::IsLost() const {
383 base::AutoLock hold(lost_lock_);
384 return lost_;
385 }
386
387 void ShareGroup::SetProgramInfoManagerForTesting(ProgramInfoManager* manager) {
378 program_info_manager_.reset(manager); 388 program_info_manager_.reset(manager);
379 } 389 }
380 390
381 ShareGroup::~ShareGroup() {} 391 ShareGroup::~ShareGroup() {}
382 392
383 } // namespace gles2 393 } // namespace gles2
384 } // namespace gpu 394 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/share_group.h ('k') | gpu/command_buffer/common/constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698