Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
|
no sievers
2015/08/19 00:43:13
nit: drop '(c)' in new headers
Tobias Sargeant
2015/08/19 11:33:13
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef GPU_COMMAND_BUFFER_COMMON_FRAMEBUFFER_COMPLETENESS_CACHE_H_ | |
| 6 #define GPU_COMMAND_BUFFER_COMMON_FRAMEBUFFER_COMPLETENESS_CACHE_H_ | |
|
no sievers
2015/08/19 00:43:13
nit: s/BUFFER_COMMON/BUFFER_SERVICE
Tobias Sargeant
2015/08/19 11:33:13
Done.
| |
| 7 | |
| 8 #include "base/containers/hash_tables.h" | |
| 9 #include "base/memory/ref_counted.h" | |
| 10 #include "gpu/gpu_export.h" | |
| 11 | |
| 12 namespace gpu { | |
| 13 namespace gles2 { | |
| 14 | |
| 15 // Refcounted wrapper for a hash_set of framebuffer format signatures | |
| 16 // representing [XXX] | |
| 17 class GPU_EXPORT FramebufferCompletenessCache | |
| 18 : public base::RefCounted<FramebufferCompletenessCache> { | |
| 19 public: | |
| 20 FramebufferCompletenessCache(); | |
| 21 | |
| 22 bool IsComplete(const std::string& signature) const; | |
| 23 void SetComplete(const std::string& signature); | |
| 24 | |
| 25 protected: | |
| 26 virtual ~FramebufferCompletenessCache(); | |
| 27 | |
| 28 private: | |
| 29 friend class base::RefCounted<FramebufferCompletenessCache>; | |
| 30 | |
| 31 typedef base::hash_set<std::string> Map; | |
| 32 | |
| 33 Map cache_; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(FramebufferCompletenessCache); | |
| 36 }; | |
| 37 | |
| 38 } // namespace gles2 | |
| 39 } // namespace gpu | |
| 40 | |
| 41 #endif // GPU_COMMAND_BUFFER_COMMON_FRAMEBUFFER_COMPLETENESS_CACHE_H_ | |
| OLD | NEW |