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

Side by Side Diff: gpu/command_buffer/service/texture_manager.h

Issue 2479513002: Reland of Extend CopyTextureCHROMIUM to more ES 3.0 texture formats. (Closed)
Patch Set: fix-opengl-lessthan-32 Created 4 years 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 unified diff | Download patch
OLDNEW
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
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
328 private: 332 private:
329 friend class MailboxManagerImpl; 333 friend class MailboxManagerImpl;
330 friend class MailboxManagerSync; 334 friend class MailboxManagerSync;
331 friend class MailboxManagerTest; 335 friend class MailboxManagerTest;
332 friend class TextureDefinition; 336 friend class TextureDefinition;
333 friend class TextureManager; 337 friend class TextureManager;
334 friend class TextureRef; 338 friend class TextureRef;
335 friend class TextureTestHelper; 339 friend class TextureTestHelper;
336 340
337 ~Texture() override; 341 ~Texture() override;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 static bool TextureMipComplete(const Texture::LevelInfo& base_level_face, 499 static bool TextureMipComplete(const Texture::LevelInfo& base_level_face,
496 GLenum target, 500 GLenum target,
497 GLint level_diff, 501 GLint level_diff,
498 GLenum internal_format, 502 GLenum internal_format,
499 GLsizei width, 503 GLsizei width,
500 GLsizei height, 504 GLsizei height,
501 GLsizei depth, 505 GLsizei depth,
502 GLenum format, 506 GLenum format,
503 GLenum type); 507 GLenum type);
504 508
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698