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

Unified Diff: gpu/command_buffer/service/texture_manager.h

Issue 2348243002: Force CUBE_MAP_POSITIVE_X texture allocation before CopyTexImage2D on Intel Mac (Closed)
Patch Set: rebase only Created 4 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/texture_manager.h
diff --git a/gpu/command_buffer/service/texture_manager.h b/gpu/command_buffer/service/texture_manager.h
index b6a446e5dbed2678e887c43f40727c9df0230545..f0d3185eceb7079141660441c69b4b8d83c754e7 100644
--- a/gpu/command_buffer/service/texture_manager.h
+++ b/gpu/command_buffer/service/texture_manager.h
@@ -1120,6 +1120,17 @@ class GPU_EXPORT TextureManager : public base::trace_event::MemoryDumpProvider {
static GLenum AdjustTexFormat(const gles2::FeatureInfo* feature_info,
GLenum format);
+ void WorkaroundCopyTexImageCubeMap(
+ DecoderTextureState* texture_state,
+ ContextState* state,
+ DecoderFramebufferState* framebuffer_state,
+ TextureRef* texture_ref,
+ const char* function_name,
+ const DoTexImageArguments& args) {
+ DoCubeMapWorkaround(texture_state, state, framebuffer_state,
+ texture_ref, function_name, args);
+ }
+
private:
friend class Texture;
friend class TextureRef;
@@ -1157,6 +1168,14 @@ class GPU_EXPORT TextureManager : public base::trace_event::MemoryDumpProvider {
const DoTexSubImageArguments& args,
const PixelStoreParams& unpack_params);
+ void DoCubeMapWorkaround(
+ DecoderTextureState* texture_state,
+ ContextState* state,
+ DecoderFramebufferState* framebuffer_state,
+ TextureRef* texture_ref,
+ const char* function_name,
+ const DoTexImageArguments& args);
+
void StartTracking(TextureRef* texture);
void StopTracking(TextureRef* texture);
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698