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

Unified Diff: gpu/command_buffer/service/texture_definition.h

Issue 14188053: gpu: Change Produce/ConsumeTexture to allow texture sharing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/texture_definition.h
diff --git a/gpu/command_buffer/service/texture_definition.h b/gpu/command_buffer/service/texture_definition.h
deleted file mode 100644
index d55ef3c197ef725ee7ba6398b7b12f0ae2702899..0000000000000000000000000000000000000000
--- a/gpu/command_buffer/service/texture_definition.h
+++ /dev/null
@@ -1,98 +0,0 @@
-// Copyright (c) 2012 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 GPU_COMMAND_BUFFER_SERVICE_TEXTURE_DEFINITION_H_
-#define GPU_COMMAND_BUFFER_SERVICE_TEXTURE_DEFINITION_H_
-
-#include <vector>
-
-#include "base/callback.h"
-#include "gpu/command_buffer/service/gl_utils.h"
-#include "gpu/gpu_export.h"
-
-namespace gpu {
-namespace gles2 {
-
-// A saved definition of a texture that still exists in the underlying
-// GLShareGroup and can be used to redefine a client visible texture in any
-// context using the same GLShareGroup with the corresponding service ID.
-class GPU_EXPORT TextureDefinition {
- public:
- struct GPU_EXPORT LevelInfo {
- LevelInfo(GLenum target,
- GLenum internal_format,
- GLsizei width,
- GLsizei height,
- GLsizei depth,
- GLint border,
- GLenum format,
- GLenum type,
- bool cleared);
- LevelInfo();
-
- GLenum target;
- GLenum internal_format;
- GLsizei width;
- GLsizei height;
- GLsizei depth;
- GLint border;
- GLenum format;
- GLenum type;
- bool cleared;
- };
-
- typedef std::vector<std::vector<LevelInfo> > LevelInfos;
-
- typedef base::Callback<void(TextureDefinition*)> DestroyCallback;
-
- TextureDefinition(GLenum target,
- GLuint service_id,
- GLenum min_filter,
- GLenum mag_filter,
- GLenum wrap_s,
- GLenum wrap_t,
- GLenum usage,
- bool immutable,
- bool stream_texture,
- const LevelInfos& level_infos);
- ~TextureDefinition();
-
- GLenum target() const {
- return target_;
- }
-
- GLuint ReleaseServiceId();
- GLuint service_id() const { return service_id_; }
- GLenum min_filter() const { return min_filter_; }
- GLenum mag_filter() const { return mag_filter_; }
- GLenum wrap_s() const { return wrap_s_; }
- GLenum wrap_t() const { return wrap_t_; }
- GLenum usage() const { return usage_; }
-
- bool immutable() const { return immutable_; }
- bool stream_texture() const { return stream_texture_; }
-
- const LevelInfos& level_infos() const {
- return level_infos_;
- }
-
- private:
- GLenum target_;
- GLuint service_id_;
- GLenum min_filter_;
- GLenum mag_filter_;
- GLenum wrap_s_;
- GLenum wrap_t_;
- GLenum usage_;
- bool immutable_;
- bool stream_texture_;
- std::vector<std::vector<LevelInfo> > level_infos_;
-
- DISALLOW_COPY_AND_ASSIGN(TextureDefinition);
-};
-
-} // namespage gles2
-} // namespace gpu
-
-#endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_DEFINITION_H_
« no previous file with comments | « gpu/command_buffer/service/renderbuffer_manager_unittest.cc ('k') | gpu/command_buffer/service/texture_definition.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698