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

Unified Diff: mojo/gpu/texture_uploader.h

Issue 1533753002: Remove TextureCache and TextureUploader. (Closed) Base URL: git@github.com:domokit/mojo.git@cl-2a
Patch Set: rebase Created 5 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 | « mojo/gpu/texture_cache_unittest.cc ('k') | mojo/gpu/texture_uploader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gpu/texture_uploader.h
diff --git a/mojo/gpu/texture_uploader.h b/mojo/gpu/texture_uploader.h
deleted file mode 100644
index 29ab68081791b457fb45bb7ae4277debef035345..0000000000000000000000000000000000000000
--- a/mojo/gpu/texture_uploader.h
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MOJO_GPU_TEXTURE_UPLOADER_H_
-#define MOJO_GPU_TEXTURE_UPLOADER_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "base/memory/weak_ptr.h"
-#include "mojo/gpu/gl_context.h"
-#include "mojo/gpu/gl_texture.h"
-#include "mojo/services/surfaces/interfaces/surfaces.mojom.h"
-
-namespace mojo {
-
-// Utility class for uploading textures to a surface.
-class TextureUploader {
- public:
- // Gets a FramePtr for uploading to a to a SurfacePtr using |texture| as a
- // transferable resource with id |resource_id|.
- static mojo::FramePtr GetUploadFrame(
- base::WeakPtr<mojo::GLContext> context,
- uint32_t resource_id,
- const scoped_ptr<mojo::GLTexture>& texture);
-
- private:
- TextureUploader();
- ~TextureUploader();
- DISALLOW_COPY_AND_ASSIGN(TextureUploader);
-};
-
-} // namespace mojo
-
-#endif // MOJO_GPU_TEXTURE_UPLOADER_H_
« no previous file with comments | « mojo/gpu/texture_cache_unittest.cc ('k') | mojo/gpu/texture_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698