| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 void InitTextureMaxAnisotropyIfNeeded(GLenum target); | 318 void InitTextureMaxAnisotropyIfNeeded(GLenum target); |
| 319 | 319 |
| 320 void DumpLevelMemory(base::trace_event::ProcessMemoryDump* pmd, | 320 void DumpLevelMemory(base::trace_event::ProcessMemoryDump* pmd, |
| 321 uint64_t client_tracing_id, | 321 uint64_t client_tracing_id, |
| 322 const std::string& dump_name) const; | 322 const std::string& dump_name) const; |
| 323 | 323 |
| 324 void ApplyFormatWorkarounds(FeatureInfo* feature_info); | 324 void ApplyFormatWorkarounds(FeatureInfo* feature_info); |
| 325 | 325 |
| 326 bool EmulatingRGB(); | 326 bool EmulatingRGB(); |
| 327 | 327 |
| 328 static bool ColorRenderable(const FeatureInfo* feature_info, | |
| 329 GLenum internal_format, | |
| 330 bool immutable); | |
| 331 | |
| 332 private: | 328 private: |
| 333 friend class MailboxManagerImpl; | 329 friend class MailboxManagerImpl; |
| 334 friend class MailboxManagerSync; | 330 friend class MailboxManagerSync; |
| 335 friend class MailboxManagerTest; | 331 friend class MailboxManagerTest; |
| 336 friend class TextureDefinition; | 332 friend class TextureDefinition; |
| 337 friend class TextureManager; | 333 friend class TextureManager; |
| 338 friend class TextureRef; | 334 friend class TextureRef; |
| 339 friend class TextureTestHelper; | 335 friend class TextureTestHelper; |
| 340 | 336 |
| 341 ~Texture() override; | 337 ~Texture() override; |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 static bool TextureMipComplete(const Texture::LevelInfo& base_level_face, | 495 static bool TextureMipComplete(const Texture::LevelInfo& base_level_face, |
| 500 GLenum target, | 496 GLenum target, |
| 501 GLint level_diff, | 497 GLint level_diff, |
| 502 GLenum internal_format, | 498 GLenum internal_format, |
| 503 GLsizei width, | 499 GLsizei width, |
| 504 GLsizei height, | 500 GLsizei height, |
| 505 GLsizei depth, | 501 GLsizei depth, |
| 506 GLenum format, | 502 GLenum format, |
| 507 GLenum type); | 503 GLenum type); |
| 508 | 504 |
| 505 static bool ColorRenderable(const FeatureInfo* feature_info, |
| 506 GLenum internal_format, |
| 507 bool immutable); |
| 508 |
| 509 static bool TextureFilterable(const FeatureInfo* feature_info, | 509 static bool TextureFilterable(const FeatureInfo* feature_info, |
| 510 GLenum internal_format, | 510 GLenum internal_format, |
| 511 GLenum type, | 511 GLenum type, |
| 512 bool immutable); | 512 bool immutable); |
| 513 | 513 |
| 514 // Sets the Texture's target | 514 // Sets the Texture's target |
| 515 // Parameters: | 515 // Parameters: |
| 516 // target: GL_TEXTURE_2D or GL_TEXTURE_CUBE_MAP or | 516 // target: GL_TEXTURE_2D or GL_TEXTURE_CUBE_MAP or |
| 517 // GL_TEXTURE_EXTERNAL_OES or GL_TEXTURE_RECTANGLE_ARB | 517 // GL_TEXTURE_EXTERNAL_OES or GL_TEXTURE_RECTANGLE_ARB |
| 518 // GL_TEXTURE_2D_ARRAY or GL_TEXTURE_3D (for GLES3) | 518 // GL_TEXTURE_2D_ARRAY or GL_TEXTURE_3D (for GLES3) |
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1264 private: | 1264 private: |
| 1265 DecoderTextureState* texture_state_; | 1265 DecoderTextureState* texture_state_; |
| 1266 base::TimeTicks begin_time_; | 1266 base::TimeTicks begin_time_; |
| 1267 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); | 1267 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); |
| 1268 }; | 1268 }; |
| 1269 | 1269 |
| 1270 } // namespace gles2 | 1270 } // namespace gles2 |
| 1271 } // namespace gpu | 1271 } // namespace gpu |
| 1272 | 1272 |
| 1273 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ | 1273 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ |
| OLD | NEW |