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

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: update version 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
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..7bfbf0966d85f91928df8c5be268ceb47d4ec43f 100644
--- a/gpu/command_buffer/service/texture_manager.h
+++ b/gpu/command_buffer/service/texture_manager.h
@@ -1120,6 +1120,18 @@ 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 +1169,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);

Powered by Google App Engine
This is Rietveld 408576698