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

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

Issue 1293123002: Revert of gpu: workaround force_cube_map_positive_x_allocation fixes Android crash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 49571d10b9c3df149673b73b04a363e74388a5ab..e97feb327f1c5a37b6edc98fd1d4a39c21885657 100644
--- a/gpu/command_buffer/service/texture_manager.h
+++ b/gpu/command_buffer/service/texture_manager.h
@@ -14,7 +14,6 @@
#include "base/containers/hash_tables.h"
#include "base/memory/ref_counted.h"
#include "gpu/command_buffer/service/async_pixel_transfer_delegate.h"
-#include "gpu/command_buffer/service/feature_info.h"
#include "gpu/command_buffer/service/gl_utils.h"
#include "gpu/command_buffer/service/memory_tracking.h"
#include "gpu/gpu_export.h"
@@ -533,13 +532,10 @@
struct DecoderTextureState {
// total_texture_upload_time automatically initialized to 0 in default
// constructor.
- explicit DecoderTextureState(const FeatureInfo::Workarounds& workarounds)
+ explicit DecoderTextureState(bool texsubimage_faster_than_teximage)
: tex_image_failed(false),
texture_upload_count(0),
- texsubimage_faster_than_teximage(
- workarounds.texsubimage_faster_than_teximage),
- force_cube_map_positive_x_allocation(
- workarounds.force_cube_map_positive_x_allocation) {}
+ texsubimage_faster_than_teximage(texsubimage_faster_than_teximage) {}
// This indicates all the following texSubImage*D calls that are part of the
// failed texImage*D call should be ignored. The client calls have a lock
@@ -552,7 +548,6 @@
base::TimeDelta total_texture_upload_time;
bool texsubimage_faster_than_teximage;
- bool force_cube_map_positive_x_allocation;
};
// This class keeps track of the textures and their sizes so we can do NPOT and
@@ -893,14 +888,6 @@
TextureRef* texture_ref,
const DoTexImageArguments& args);
- bool DoTexImage2DCubeMapPositiveXIfNeeded(
- DecoderTextureState* texture_state,
- ErrorState* error_state,
- DecoderFramebufferState* framebuffer_state,
- const char* function_name,
- TextureRef* texture_ref,
- 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