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

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

Powered by Google App Engine
This is Rietveld 408576698