OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "content/browser/gpu/shader_disk_cache.h" | 5 #include "content/browser/gpu/shader_disk_cache.h" |
6 | 6 |
7 #include "base/threading/thread_checker.h" | 7 #include "base/threading/thread_checker.h" |
8 #include "content/browser/gpu/gpu_process_host.h" | 8 #include "content/browser/gpu/gpu_process_host.h" |
9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
10 #include "gpu/command_buffer/common/constants.h" | 10 #include "gpu/command_buffer/common/constants.h" |
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 default: | 409 default: |
410 NOTREACHED(); // Invalid state provided. | 410 NOTREACHED(); // Invalid state provided. |
411 op_type_ = TERMINATE; | 411 op_type_ = TERMINATE; |
412 break; | 412 break; |
413 } | 413 } |
414 } | 414 } |
415 } | 415 } |
416 | 416 |
417 // static | 417 // static |
418 ShaderCacheFactory* ShaderCacheFactory::GetInstance() { | 418 ShaderCacheFactory* ShaderCacheFactory::GetInstance() { |
419 return Singleton<ShaderCacheFactory, | 419 return base::Singleton<ShaderCacheFactory, |
420 LeakySingletonTraits<ShaderCacheFactory> >::get(); | 420 base::LeakySingletonTraits<ShaderCacheFactory>>::get(); |
421 } | 421 } |
422 | 422 |
423 ShaderCacheFactory::ShaderCacheFactory() { | 423 ShaderCacheFactory::ShaderCacheFactory() { |
424 } | 424 } |
425 | 425 |
426 ShaderCacheFactory::~ShaderCacheFactory() { | 426 ShaderCacheFactory::~ShaderCacheFactory() { |
427 } | 427 } |
428 | 428 |
429 void ShaderCacheFactory::SetCacheInfo(int32 client_id, | 429 void ShaderCacheFactory::SetCacheInfo(int32 client_id, |
430 const base::FilePath& path) { | 430 const base::FilePath& path) { |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 const net::CompletionCallback& callback) { | 616 const net::CompletionCallback& callback) { |
617 if (entry_map_.empty()) { | 617 if (entry_map_.empty()) { |
618 return net::OK; | 618 return net::OK; |
619 } | 619 } |
620 cache_complete_callback_ = callback; | 620 cache_complete_callback_ = callback; |
621 return net::ERR_IO_PENDING; | 621 return net::ERR_IO_PENDING; |
622 } | 622 } |
623 | 623 |
624 } // namespace content | 624 } // namespace content |
625 | 625 |
OLD | NEW |