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

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

Issue 7158002: Revert 89002 - Enforce RGB even on buggy drivers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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_unittest_base.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/texture_manager.h
===================================================================
--- gpu/command_buffer/service/texture_manager.h (revision 89013)
+++ gpu/command_buffer/service/texture_manager.h (working copy)
@@ -42,7 +42,6 @@
cube_complete_(false),
npot_(false),
has_been_bound_(false),
- framebuffer_attachment_count_(0),
owned_(true) {
}
@@ -132,19 +131,6 @@
owned_ = false;
}
- bool IsAttachedToFramebuffer() const {
- return framebuffer_attachment_count_ != 0;
- }
-
- void AttachToFramebuffer() {
- ++framebuffer_attachment_count_;
- }
-
- void DetachFromFramebuffer() {
- DCHECK(framebuffer_attachment_count_ > 0);
- --framebuffer_attachment_count_;
- }
-
private:
friend class TextureManager;
friend class base::RefCounted<TextureInfo>;
@@ -254,9 +240,6 @@
// Whether this texture has ever been bound.
bool has_been_bound_;
- // 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_;
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698