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

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

Issue 1278333003: Fix crash caused by concurrent access to framebuffer_combo_complete_map_. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments; return unittesting of cache behaviour. Created 5 years, 4 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "gpu/command_buffer/service/framebuffer_completeness_cache.h"
6
7 namespace gpu {
8 namespace gles2 {
9
10 FramebufferCompletenessCache::FramebufferCompletenessCache() {}
11
12 FramebufferCompletenessCache::~FramebufferCompletenessCache() {}
13
14 bool FramebufferCompletenessCache::IsComplete(
15 const std::string& signature) const {
16 return cache_.find(signature) != cache_.end();
17 }
18
19 void FramebufferCompletenessCache::SetComplete(const std::string& signature) {
20 cache_.insert(signature);
21 }
22
23 } // namespace gles2
24 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698