OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 void DetachFromFramebuffer() { | 136 void DetachFromFramebuffer() { |
137 DCHECK_GT(framebuffer_attachment_count_, 0); | 137 DCHECK_GT(framebuffer_attachment_count_, 0); |
138 --framebuffer_attachment_count_; | 138 --framebuffer_attachment_count_; |
139 } | 139 } |
140 | 140 |
141 void SetStreamTexture(bool stream_texture) { | 141 void SetStreamTexture(bool stream_texture) { |
142 stream_texture_ = stream_texture; | 142 stream_texture_ = stream_texture; |
143 } | 143 } |
144 | 144 |
145 int IsStreamTexture() { | 145 bool IsStreamTexture() { |
146 return stream_texture_; | 146 return stream_texture_; |
147 } | 147 } |
148 | 148 |
149 gfx::AsyncPixelTransferState* GetAsyncTransferState() const { | 149 gfx::AsyncPixelTransferState* GetAsyncTransferState() const { |
150 return async_transfer_state_.get(); | 150 return async_transfer_state_.get(); |
151 } | 151 } |
152 void SetAsyncTransferState(scoped_ptr<gfx::AsyncPixelTransferState> state) { | 152 void SetAsyncTransferState(scoped_ptr<gfx::AsyncPixelTransferState> state) { |
153 async_transfer_state_ = state.Pass(); | 153 async_transfer_state_ = state.Pass(); |
154 } | 154 } |
155 bool AsyncTransferIsInProgress() { | 155 bool AsyncTransferIsInProgress() { |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 // The default textures for each target (texture name = 0) | 609 // The default textures for each target (texture name = 0) |
610 scoped_refptr<Texture> default_textures_[kNumDefaultTextures]; | 610 scoped_refptr<Texture> default_textures_[kNumDefaultTextures]; |
611 | 611 |
612 DISALLOW_COPY_AND_ASSIGN(TextureManager); | 612 DISALLOW_COPY_AND_ASSIGN(TextureManager); |
613 }; | 613 }; |
614 | 614 |
615 } // namespace gles2 | 615 } // namespace gles2 |
616 } // namespace gpu | 616 } // namespace gpu |
617 | 617 |
618 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ | 618 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ |
OLD | NEW |