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

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

Issue 15798014: Replace context parenting by sharing through mailboxes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_mock.h ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/texture_manager.h
diff --git a/gpu/command_buffer/service/texture_manager.h b/gpu/command_buffer/service/texture_manager.h
index 76acd155b3b6d0159c3b96dc5d948ef1ba9b8a67..c3820568d49dfce987743f298726515580bd2507 100644
--- a/gpu/command_buffer/service/texture_manager.h
+++ b/gpu/command_buffer/service/texture_manager.h
@@ -81,6 +81,7 @@ class GPU_EXPORT Texture {
}
void SetServiceId(GLuint service_id) {
+ DCHECK(service_id);
service_id_ = service_id;
}
@@ -124,10 +125,6 @@ class GPU_EXPORT Texture {
return !!target();
}
- void SetNotOwned() {
- owned_ = false;
- }
-
bool IsAttachedToFramebuffer() const {
return framebuffer_attachment_count_ != 0;
}
@@ -368,10 +365,6 @@ class GPU_EXPORT Texture {
// The number of framebuffers this texture is attached to.
int framebuffer_attachment_count_;
- // Whether the associated context group owns this texture and should delete
- // it.
- bool owned_;
-
// Whether this is a special streaming texture.
bool stream_texture_;
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_mock.h ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698