| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "gpu/command_buffer/service/texture_definition.h" | 5 #include "gpu/command_buffer/service/texture_definition.h" |
| 6 | 6 |
| 7 #include <list> | 7 #include <list> |
| 8 | 8 |
| 9 #include "base/memory/linked_ptr.h" | 9 #include "base/memory/linked_ptr.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 bool GLImageSync::BindTexImage(unsigned target) { | 78 bool GLImageSync::BindTexImage(unsigned target) { |
| 79 NOTREACHED(); | 79 NOTREACHED(); |
| 80 return false; | 80 return false; |
| 81 } | 81 } |
| 82 | 82 |
| 83 void GLImageSync::ReleaseTexImage(unsigned target) { | 83 void GLImageSync::ReleaseTexImage(unsigned target) { |
| 84 NOTREACHED(); | 84 NOTREACHED(); |
| 85 } | 85 } |
| 86 | 86 |
| 87 bool GLImageSync::CopyTexImage(unsigned target) { | 87 bool GLImageSync::CopyTexImage(unsigned target) { |
| 88 NOTREACHED(); | |
| 89 return false; | 88 return false; |
| 90 } | 89 } |
| 91 | 90 |
| 92 void GLImageSync::WillUseTexImage() { | 91 void GLImageSync::WillUseTexImage() { |
| 93 if (buffer_.get()) | 92 if (buffer_.get()) |
| 94 buffer_->WillRead(this); | 93 buffer_->WillRead(this); |
| 95 } | 94 } |
| 96 | 95 |
| 97 void GLImageSync::DidUseTexImage() { | 96 void GLImageSync::DidUseTexImage() { |
| 98 if (buffer_.get()) | 97 if (buffer_.get()) |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 | 492 |
| 494 // All structural changes should have orphaned the texture. | 493 // All structural changes should have orphaned the texture. |
| 495 if (image_buffer_.get() && !texture->GetLevelImage(texture->target(), 0)) | 494 if (image_buffer_.get() && !texture->GetLevelImage(texture->target(), 0)) |
| 496 return false; | 495 return false; |
| 497 | 496 |
| 498 return true; | 497 return true; |
| 499 } | 498 } |
| 500 | 499 |
| 501 } // namespace gles2 | 500 } // namespace gles2 |
| 502 } // namespace gpu | 501 } // namespace gpu |
| OLD | NEW |