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

Unified Diff: gpu/ipc/host/shader_disk_cache.h

Issue 2555693005: gpu: Move ShaderDiskCache into //gpu/ipc/host component. (Closed)
Patch Set: tot merge Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/ipc/host/DEPS ('k') | gpu/ipc/host/shader_disk_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/host/shader_disk_cache.h
diff --git a/content/browser/gpu/shader_disk_cache.h b/gpu/ipc/host/shader_disk_cache.h
similarity index 90%
rename from content/browser/gpu/shader_disk_cache.h
rename to gpu/ipc/host/shader_disk_cache.h
index fd978c96169d8ff9486afce034b8591fcd545020..4080737d2fe50b15e7bab117378b64e583c78135 100644
--- a/content/browser/gpu/shader_disk_cache.h
+++ b/gpu/ipc/host/shader_disk_cache.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_BROWSER_GPU_SHADER_DISK_CACHE_H_
-#define CONTENT_BROWSER_GPU_SHADER_DISK_CACHE_H_
+#ifndef GPU_IPC_HOST_SHADER_DISK_CACHE_H_
+#define GPU_IPC_HOST_SHADER_DISK_CACHE_H_
#include <stdint.h>
@@ -15,10 +15,9 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/threading/thread_checker.h"
-#include "content/common/content_export.h"
#include "net/disk_cache/disk_cache.h"
-namespace content {
+namespace gpu {
class ShaderCacheFactory;
class ShaderDiskCacheEntry;
@@ -27,8 +26,7 @@ class ShaderClearHelper;
// ShaderDiskCache is the interface to the on disk cache for
// GL shaders.
-class CONTENT_EXPORT ShaderDiskCache
- : public base::RefCounted<ShaderDiskCache> {
+class ShaderDiskCache : public base::RefCounted<ShaderDiskCache> {
public:
using ShaderLoadedCallback =
base::Callback<void(const std::string&, const std::string&)>;
@@ -45,10 +43,9 @@ class CONTENT_EXPORT ShaderDiskCache
// The return value is a net error code. If this method returns
// ERR_IO_PENDING, the |completion_callback| will be invoked when the
// operation completes.
- int Clear(
- const base::Time begin_time,
- const base::Time end_time,
- const net::CompletionCallback& completion_callback);
+ int Clear(const base::Time begin_time,
+ const base::Time end_time,
+ const net::CompletionCallback& completion_callback);
// Sets a callback for when the cache is available. If the cache is
// already available the callback will not be called and net::OK is returned.
@@ -104,8 +101,7 @@ class CONTENT_EXPORT ShaderDiskCache
// ShaderCacheFactory maintains a cache of ShaderDiskCache objects
// so we only create one per profile directory.
-class CONTENT_EXPORT ShaderCacheFactory
- : NON_EXPORTED_BASE(public base::ThreadChecker) {
+class ShaderCacheFactory : NON_EXPORTED_BASE(public base::ThreadChecker) {
public:
explicit ShaderCacheFactory(
scoped_refptr<base::SingleThreadTaskRunner> cache_task_runner);
@@ -156,6 +152,6 @@ class CONTENT_EXPORT ShaderCacheFactory
DISALLOW_COPY_AND_ASSIGN(ShaderCacheFactory);
};
-} // namespace content
+} // namespace gpu
-#endif // CONTENT_BROWSER_GPU_SHADER_DISK_CACHE_H_
+#endif // GPU_IPC_HOST_SHADER_DISK_CACHE_H_
« no previous file with comments | « gpu/ipc/host/DEPS ('k') | gpu/ipc/host/shader_disk_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698