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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 205193006: gpu: Remove map_image field from gpu::Capabilities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move TODO Created 6 years, 9 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/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index e0b0cb82f60b36b2a9e5f3f39217aaec0112f9d4..852bd3ad04e2a1c96cd3e16dc3075540c591ef33 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -86,7 +86,8 @@ GLES2Implementation::GLES2Implementation(
ShareGroup* share_group,
TransferBufferInterface* transfer_buffer,
bool bind_generates_resource,
- GpuControl* gpu_control)
+ GpuControl* gpu_control,
+ const Capabilities& capabilities)
: helper_(helper),
transfer_buffer_(transfer_buffer),
angle_pack_reverse_row_order_status_(kUnknownExtensionStatus),
@@ -111,7 +112,7 @@ GLES2Implementation::GLES2Implementation(
use_count_(0),
error_message_callback_(NULL),
gpu_control_(gpu_control),
- capabilities_(gpu_control->GetCapabilities()),
+ capabilities_(capabilities),
weak_ptr_factory_(this) {
DCHECK(helper);
DCHECK(transfer_buffer);
@@ -2142,11 +2143,8 @@ const GLubyte* GLES2Implementation::GetStringHelper(GLenum name) {
case GL_EXTENSIONS:
str += std::string(str.empty() ? "" : " ") +
"GL_CHROMIUM_flipy "
+ "GL_CHROMIUM_map_image "
"GL_EXT_unpack_subimage";
- if (capabilities_.map_image) {
- // The first space character is intentional.
- str += " GL_CHROMIUM_map_image";
- }
break;
default:
break;
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.h ('k') | gpu/command_buffer/client/gles2_implementation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698