summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/gpu_process_host_ui_shim.cc11
-rw-r--r--chrome/gpu/gpu_channel.cc6
-rw-r--r--chrome/gpu/gpu_channel.h1
-rw-r--r--chrome/gpu/gpu_command_buffer_stub.cc3
-rw-r--r--chrome/gpu/gpu_command_buffer_stub.h23
-rw-r--r--content/browser/gpu_process_host.cc18
-rw-r--r--content/browser/gpu_process_host.h11
-rw-r--r--gpu/command_buffer/client/gles2_demo.cc1
-rw-r--r--gpu/command_buffer/service/context_group.cc6
-rw-r--r--gpu/command_buffer/service/context_group.h4
-rw-r--r--gpu/command_buffer/service/context_group_unittest.cc5
-rw-r--r--gpu/command_buffer/service/feature_info.cc11
-rw-r--r--gpu/command_buffer/service/feature_info.h5
-rw-r--r--gpu/command_buffer/service/gles2_cmd_decoder.cc22
-rw-r--r--gpu/command_buffer/service/gles2_cmd_decoder.h5
-rw-r--r--gpu/command_buffer/service/gles2_cmd_decoder_mock.h14
-rw-r--r--gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc8
-rw-r--r--gpu/command_buffer/service/gpu_processor.cc15
-rw-r--r--gpu/command_buffer/service/gpu_processor.h15
-rw-r--r--gpu/command_buffer/service/gpu_processor_linux.cc15
-rw-r--r--gpu/command_buffer/service/gpu_processor_mac.cc15
-rw-r--r--gpu/command_buffer/service/gpu_processor_win.cc15
-rw-r--r--gpu/command_buffer/service/test_helper.cc4
-rw-r--r--gpu/command_buffer/service/test_helper.h6
-rw-r--r--gpu/demos/framework/window.cc4
25 files changed, 77 insertions, 166 deletions
diff --git a/chrome/browser/gpu_process_host_ui_shim.cc b/chrome/browser/gpu_process_host_ui_shim.cc
index b45eca6..c1f6d0c 100644
--- a/chrome/browser/gpu_process_host_ui_shim.cc
+++ b/chrome/browser/gpu_process_host_ui_shim.cc
@@ -124,13 +124,10 @@ GpuProcessHostUIShim* GpuProcessHostUIShim::GetForRenderer(int renderer_id) {
// If Init succeeds, post a task to create the corresponding GpuProcessHost.
// The GpuProcessHost will take ownership of the GpuProcessHostUIShim.
- BrowserThread::PostTask(
- BrowserThread::IO,
- FROM_HERE,
- NewRunnableFunction(
- &GpuProcessHost::Create,
- ui_shim->host_id_,
- GpuDataManager::GetInstance()->GetGpuFeatureFlags()));
+ BrowserThread::PostTask(BrowserThread::IO,
+ FROM_HERE,
+ NewRunnableFunction(&GpuProcessHost::Create,
+ ui_shim->host_id_));
return ui_shim;
}
diff --git a/chrome/gpu/gpu_channel.cc b/chrome/gpu/gpu_channel.cc
index c7ca887..8b1e1d2 100644
--- a/chrome/gpu/gpu_channel.cc
+++ b/chrome/gpu/gpu_channel.cc
@@ -31,8 +31,6 @@ GpuChannel::GpuChannel(GpuThread* gpu_thread,
DCHECK(renderer_id);
const CommandLine* command_line = CommandLine::ForCurrentProcess();
log_messages_ = command_line->HasSwitch(switches::kLogPluginMessages);
- disallowed_extensions_.multisampling =
- command_line->HasSwitch(switches::kDisableGLMultisampling);
}
GpuChannel::~GpuChannel() {
@@ -96,8 +94,7 @@ void GpuChannel::CreateViewCommandBuffer(
#if defined(ENABLE_GPU)
*route_id = GenerateRouteID();
scoped_ptr<GpuCommandBufferStub> stub(new GpuCommandBufferStub(
- this, window, NULL, gfx::Size(), disallowed_extensions_,
- init_params.allowed_extensions,
+ this, window, NULL, gfx::Size(), init_params.allowed_extensions,
init_params.attribs, 0, *route_id, renderer_id_, render_view_id));
router_.AddRoute(*route_id, stub.get());
stubs_.AddWithID(stub.release(), *route_id);
@@ -176,7 +173,6 @@ void GpuChannel::OnCreateOffscreenCommandBuffer(
gfx::kNullPluginWindow,
parent_stub,
size,
- disallowed_extensions_,
init_params.allowed_extensions,
init_params.attribs,
parent_texture_id,
diff --git a/chrome/gpu/gpu_channel.h b/chrome/gpu/gpu_channel.h
index 2b222b2..2512104 100644
--- a/chrome/gpu/gpu_channel.h
+++ b/chrome/gpu/gpu_channel.h
@@ -120,7 +120,6 @@ class GpuChannel : public IPC::Channel::Listener,
#endif // defined (ENABLE_GPU)
bool log_messages_; // True if we should log sent and received messages.
- gpu::gles2::DisallowedExtensions disallowed_extensions_;
DISALLOW_COPY_AND_ASSIGN(GpuChannel);
};
diff --git a/chrome/gpu/gpu_command_buffer_stub.cc b/chrome/gpu/gpu_command_buffer_stub.cc
index 59f45f3..17a9235 100644
--- a/chrome/gpu/gpu_command_buffer_stub.cc
+++ b/chrome/gpu/gpu_command_buffer_stub.cc
@@ -24,7 +24,6 @@ GpuCommandBufferStub::GpuCommandBufferStub(
gfx::PluginWindowHandle handle,
GpuCommandBufferStub* parent,
const gfx::Size& size,
- const gpu::gles2::DisallowedExtensions& disallowed_extensions,
const std::string& allowed_extensions,
const std::vector<int32>& attribs,
uint32 parent_texture_id,
@@ -36,7 +35,6 @@ GpuCommandBufferStub::GpuCommandBufferStub(
parent_(
parent ? parent->AsWeakPtr() : base::WeakPtr<GpuCommandBufferStub>()),
initial_size_(size),
- disallowed_extensions_(disallowed_extensions),
allowed_extensions_(allowed_extensions),
requested_attribs_(attribs),
parent_texture_id_(parent_texture_id),
@@ -238,7 +236,6 @@ void GpuCommandBufferStub::OnInitialize(
if (processor_->Initialize(
output_window_handle,
initial_size_,
- disallowed_extensions_,
allowed_extensions_.c_str(),
requested_attribs_,
parent_processor,
diff --git a/chrome/gpu/gpu_command_buffer_stub.h b/chrome/gpu/gpu_command_buffer_stub.h
index 3941120..7124e25 100644
--- a/chrome/gpu/gpu_command_buffer_stub.h
+++ b/chrome/gpu/gpu_command_buffer_stub.h
@@ -27,18 +27,16 @@ class GpuCommandBufferStub
public IPC::Message::Sender,
public base::SupportsWeakPtr<GpuCommandBufferStub> {
public:
- GpuCommandBufferStub(
- GpuChannel* channel,
- gfx::PluginWindowHandle handle,
- GpuCommandBufferStub* parent,
- const gfx::Size& size,
- const gpu::gles2::DisallowedExtensions& disallowed_extensions,
- const std::string& allowed_extensions,
- const std::vector<int32>& attribs,
- uint32 parent_texture_id,
- int32 route_id,
- int32 renderer_id,
- int32 render_view_id);
+ GpuCommandBufferStub(GpuChannel* channel,
+ gfx::PluginWindowHandle handle,
+ GpuCommandBufferStub* parent,
+ const gfx::Size& size,
+ const std::string& allowed_extensions,
+ const std::vector<int32>& attribs,
+ uint32 parent_texture_id,
+ int32 route_id,
+ int32 renderer_id,
+ int32 render_view_id);
virtual ~GpuCommandBufferStub();
@@ -108,7 +106,6 @@ class GpuCommandBufferStub
gfx::PluginWindowHandle handle_;
base::WeakPtr<GpuCommandBufferStub> parent_;
gfx::Size initial_size_;
- gpu::gles2::DisallowedExtensions disallowed_extensions_;
std::string allowed_extensions_;
std::vector<int32> requested_attribs_;
uint32 parent_texture_id_;
diff --git a/content/browser/gpu_process_host.cc b/content/browser/gpu_process_host.cc
index bb1f4ad..900abff 100644
--- a/content/browser/gpu_process_host.cc
+++ b/content/browser/gpu_process_host.cc
@@ -102,12 +102,10 @@ class GpuMainThread : public base::Thread {
};
// static
-GpuProcessHost* GpuProcessHost::Create(
- int host_id,
- const GpuFeatureFlags& gpu_feature_flags) {
+GpuProcessHost* GpuProcessHost::Create(int host_id) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- GpuProcessHost* host = new GpuProcessHost(host_id, gpu_feature_flags);
+ GpuProcessHost* host = new GpuProcessHost(host_id);
if (!host->Init()) {
delete host;
return NULL;
@@ -126,12 +124,9 @@ GpuProcessHost* GpuProcessHost::FromID(int host_id) {
return g_hosts_by_id.Lookup(host_id);
}
-GpuProcessHost::GpuProcessHost(
- int host_id,
- const GpuFeatureFlags& gpu_feature_flags)
+GpuProcessHost::GpuProcessHost(int host_id)
: BrowserChildProcessHost(GPU_PROCESS, NULL),
- host_id_(host_id),
- gpu_feature_flags_(gpu_feature_flags) {
+ host_id_(host_id) {
g_hosts_by_id.AddWithID(this, host_id_);
}
@@ -301,15 +296,10 @@ bool GpuProcessHost::LaunchGpuProcess() {
switches::kLoggingLevel,
switches::kNoGpuSandbox,
switches::kNoSandbox,
- switches::kDisableGLMultisampling,
};
cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
arraysize(kSwitchNames));
- if (gpu_feature_flags_.flags() & GpuFeatureFlags::kGpuFeatureMultisampling) {
- cmd_line->AppendSwitch(switches::kDisableGLMultisampling);
- }
-
// If specified, prepend a launcher program to the command line.
if (!gpu_launcher.empty())
cmd_line->PrependWrapper(gpu_launcher);
diff --git a/content/browser/gpu_process_host.h b/content/browser/gpu_process_host.h
index 35c9163..69f5916 100644
--- a/content/browser/gpu_process_host.h
+++ b/content/browser/gpu_process_host.h
@@ -7,7 +7,6 @@
#pragma once
#include "base/threading/non_thread_safe.h"
-#include "chrome/common/gpu_feature_flags.h"
#include "content/browser/browser_child_process_host.h"
namespace IPC {
@@ -20,9 +19,7 @@ class GpuProcessHost : public BrowserChildProcessHost,
// Create a GpuProcessHost with the given ID. The object can be found using
// FromID with the same id.
- static GpuProcessHost* Create(
- int host_id,
- const GpuFeatureFlags& gpu_feature_flags);
+ static GpuProcessHost* Create(int host_id);
// Get the GPU process host for the GPU process with the given ID. Returns
// null if the process no longer exists.
@@ -34,9 +31,7 @@ class GpuProcessHost : public BrowserChildProcessHost,
virtual bool OnMessageReceived(const IPC::Message& message);
private:
- explicit GpuProcessHost(
- int host_id,
- const GpuFeatureFlags& gpu_feature_flags);
+ explicit GpuProcessHost(int host_id);
virtual ~GpuProcessHost();
bool Init();
@@ -54,8 +49,6 @@ class GpuProcessHost : public BrowserChildProcessHost,
// The serial number of the GpuProcessHost / GpuProcessHostUIShim pair.
int host_id_;
- GpuFeatureFlags gpu_feature_flags_;
-
DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
};
diff --git a/gpu/command_buffer/client/gles2_demo.cc b/gpu/command_buffer/client/gles2_demo.cc
index 962cd332..05c0003 100644
--- a/gpu/command_buffer/client/gles2_demo.cc
+++ b/gpu/command_buffer/client/gles2_demo.cc
@@ -59,7 +59,6 @@ bool GLES2Demo::Setup(void* hwnd, int32 size) {
GPUProcessor* gpu_processor = new GPUProcessor(command_buffer.get(), NULL);
if (!gpu_processor->Initialize(reinterpret_cast<HWND>(hwnd),
gfx::Size(),
- gpu::gles2::DisallowedExtensions(),
NULL,
std::vector<int32>(),
NULL,
diff --git a/gpu/command_buffer/service/context_group.cc b/gpu/command_buffer/service/context_group.cc
index 764cc64..b542d51 100644
--- a/gpu/command_buffer/service/context_group.cc
+++ b/gpu/command_buffer/service/context_group.cc
@@ -7,7 +7,6 @@
#include "gpu/command_buffer/common/id_allocator.h"
#include "gpu/command_buffer/service/buffer_manager.h"
#include "gpu/command_buffer/service/framebuffer_manager.h"
-#include "gpu/command_buffer/service/gles2_cmd_decoder.h"
#include "gpu/command_buffer/service/program_manager.h"
#include "gpu/command_buffer/service/renderbuffer_manager.h"
#include "gpu/command_buffer/service/shader_manager.h"
@@ -39,13 +38,12 @@ static void GetIntegerv(GLenum pname, uint32* var) {
*var = value;
}
-bool ContextGroup::Initialize(const DisallowedExtensions& disallowed_extensions,
- const char* allowed_features) {
+bool ContextGroup::Initialize(const char* allowed_features) {
if (initialized_) {
return true;
}
- if (!feature_info_.Initialize(disallowed_extensions, allowed_features)) {
+ if (!feature_info_.Initialize(allowed_features)) {
LOG(ERROR) << "ContextGroup::Initialize failed because FeatureInfo "
<< "initialization failed.";
return false;
diff --git a/gpu/command_buffer/service/context_group.h b/gpu/command_buffer/service/context_group.h
index 80b2e46..f3ae4b7 100644
--- a/gpu/command_buffer/service/context_group.h
+++ b/gpu/command_buffer/service/context_group.h
@@ -27,7 +27,6 @@ class RenderbufferManager;
class ProgramManager;
class ShaderManager;
class TextureManager;
-struct DisallowedExtensions;
// A Context Group helps manage multiple GLES2Decoders that share
// resources.
@@ -39,8 +38,7 @@ class ContextGroup : public base::RefCounted<ContextGroup> {
~ContextGroup();
// This should only be called by GLES2Decoder.
- bool Initialize(const DisallowedExtensions& disallowed_extensions,
- const char* allowed_features);
+ bool Initialize(const char* allowed_features);
// Sets the ContextGroup has having a lost context.
void set_have_context(bool have_context) {
diff --git a/gpu/command_buffer/service/context_group_unittest.cc b/gpu/command_buffer/service/context_group_unittest.cc
index 19d8522..78accf9 100644
--- a/gpu/command_buffer/service/context_group_unittest.cc
+++ b/gpu/command_buffer/service/context_group_unittest.cc
@@ -71,9 +71,8 @@ TEST_F(ContextGroupTest, Basic) {
}
TEST_F(ContextGroupTest, InitializeNoExtensions) {
- TestHelper::SetupContextGroupInitExpectations(gl_.get(),
- DisallowedExtensions(), "");
- group_->Initialize(DisallowedExtensions(), "");
+ TestHelper::SetupContextGroupInitExpectations(gl_.get(), "");
+ group_->Initialize("");
EXPECT_EQ(static_cast<uint32>(TestHelper::kNumVertexAttribs),
group_->max_vertex_attribs());
EXPECT_EQ(static_cast<uint32>(TestHelper::kNumTextureUnits),
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index 7a38bf3..ad85737 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -79,14 +79,6 @@ class ExtensionHelper {
};
bool FeatureInfo::Initialize(const char* allowed_features) {
- disallowed_extensions_ = DisallowedExtensions();
- AddFeatures(allowed_features);
- return true;
-}
-
-bool FeatureInfo::Initialize(const DisallowedExtensions& disallowed_extensions,
- const char* allowed_features) {
- disallowed_extensions_ = disallowed_extensions;
AddFeatures(allowed_features);
return true;
}
@@ -283,8 +275,7 @@ void FeatureInfo::AddFeatures(const char* desired_features) {
}
// Check for multisample support
- if (!disallowed_extensions_.multisampling &&
- ext.Desire("GL_CHROMIUM_framebuffer_multisample") &&
+ if (ext.Desire("GL_CHROMIUM_framebuffer_multisample") &&
(ext.Have("GL_EXT_framebuffer_multisample") ||
ext.Have("GL_ANGLE_framebuffer_multisample"))) {
feature_flags_.chromium_framebuffer_multisample = true;
diff --git a/gpu/command_buffer/service/feature_info.h b/gpu/command_buffer/service/feature_info.h
index 4eb80cc..a11aa70 100644
--- a/gpu/command_buffer/service/feature_info.h
+++ b/gpu/command_buffer/service/feature_info.h
@@ -6,7 +6,6 @@
#define GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
#include <string>
-#include "gpu/command_buffer/service/gles2_cmd_decoder.h"
#include "gpu/command_buffer/service/gles2_cmd_validation.h"
namespace gpu {
@@ -38,8 +37,6 @@ class FeatureInfo {
// If allowed features = NULL or "*", all features are allowed. Otherwise
// only features that match the strings in allowed_features are allowed.
bool Initialize(const char* allowed_features);
- bool Initialize(const DisallowedExtensions& disallowed_extensions,
- const char* allowed_features);
// Turns on certain features if they can be turned on. NULL turns on
// all available features.
@@ -62,8 +59,6 @@ class FeatureInfo {
Validators validators_;
- DisallowedExtensions disallowed_extensions_;
-
// The extensions string returned by glGetString(GL_EXTENSIONS);
std::string extensions_;
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 0d9f326..b42c220 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -670,7 +670,6 @@ class GLES2DecoderImpl : public base::SupportsWeakPtr<GLES2DecoderImpl>,
// Overridden from GLES2Decoder.
virtual bool Initialize(gfx::GLContext* context,
const gfx::Size& size,
- const DisallowedExtensions& disallowed_extensions,
const char* allowed_extensions,
const std::vector<int32>& attribs,
GLES2Decoder* parent,
@@ -1443,8 +1442,6 @@ class GLES2DecoderImpl : public base::SupportsWeakPtr<GLES2DecoderImpl>,
scoped_ptr<ShaderTranslator> vertex_translator_;
scoped_ptr<ShaderTranslator> fragment_translator_;
- DisallowedExtensions disallowed_extensions_;
-
// Cached from ContextGroup
const Validators* validators_;
FeatureInfo* feature_info_;
@@ -1790,14 +1787,12 @@ GLES2DecoderImpl::GLES2DecoderImpl(ContextGroup* group)
}
}
-bool GLES2DecoderImpl::Initialize(
- gfx::GLContext* context,
- const gfx::Size& size,
- const DisallowedExtensions& disallowed_extensions,
- const char* allowed_extensions,
- const std::vector<int32>& attribs,
- GLES2Decoder* parent,
- uint32 parent_client_texture_id) {
+bool GLES2DecoderImpl::Initialize(gfx::GLContext* context,
+ const gfx::Size& size,
+ const char* allowed_extensions,
+ const std::vector<int32>& attribs,
+ GLES2Decoder* parent,
+ uint32 parent_client_texture_id) {
DCHECK(context);
DCHECK(!context_.get());
@@ -1816,7 +1811,7 @@ bool GLES2DecoderImpl::Initialize(
return false;
}
- if (!group_->Initialize(disallowed_extensions, allowed_extensions)) {
+ if (!group_->Initialize(allowed_extensions)) {
LOG(ERROR) << "GPUProcessor::InitializeCommon failed because group "
<< "failed to initialize.";
Destroy();
@@ -1824,7 +1819,6 @@ bool GLES2DecoderImpl::Initialize(
}
CHECK_GL_ERROR();
- disallowed_extensions_ = disallowed_extensions;
vertex_attrib_manager_.Initialize(group_->max_vertex_attribs());
@@ -6174,7 +6168,7 @@ error::Error GLES2DecoderImpl::HandleGetRequestableExtensionsCHROMIUM(
const gles2::GetRequestableExtensionsCHROMIUM& c) {
Bucket* bucket = CreateBucket(c.bucket_id);
scoped_ptr<FeatureInfo> info(new FeatureInfo());
- info->Initialize(disallowed_extensions_, NULL);
+ info->Initialize(NULL);
bucket->SetFromString(info->extensions().c_str());
return error::kNoError;
}
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.h b/gpu/command_buffer/service/gles2_cmd_decoder.h
index 92d5300..88d1892 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.h
@@ -25,10 +25,6 @@ namespace gles2 {
class ContextGroup;
class GLES2Util;
-struct DisallowedExtensions {
- bool multisampling;
-};
-
// This class implements the AsyncAPIInterface interface, decoding GLES2
// commands and calling GL.
class GLES2Decoder : public CommonDecoder {
@@ -65,7 +61,6 @@ class GLES2Decoder : public CommonDecoder {
// true if successful.
virtual bool Initialize(gfx::GLContext* context,
const gfx::Size& size,
- const DisallowedExtensions& disallowed_extensions,
const char* allowed_extensions,
const std::vector<int32>& attribs,
GLES2Decoder* parent,
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_mock.h b/gpu/command_buffer/service/gles2_cmd_decoder_mock.h
index 37a7e72..0282709 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_mock.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_mock.h
@@ -25,14 +25,12 @@ class MockGLES2Decoder : public GLES2Decoder {
MockGLES2Decoder();
virtual ~MockGLES2Decoder();
- MOCK_METHOD7(Initialize,
- bool(gfx::GLContext* context,
- const gfx::Size& size,
- const DisallowedExtensions& disallowed_extensions,
- const char* allowed_extensions,
- const std::vector<int32>& attribs,
- GLES2Decoder* parent,
- uint32 parent_texture_id));
+ MOCK_METHOD6(Initialize, bool(gfx::GLContext* context,
+ const gfx::Size& size,
+ const char* allowed_extensions,
+ const std::vector<int32>& attribs,
+ GLES2Decoder* parent,
+ uint32 parent_texture_id));
MOCK_METHOD0(Destroy, void());
MOCK_METHOD1(ResizeOffscreenFrameBuffer, void(const gfx::Size& size));
MOCK_METHOD0(UpdateOffscreenFrameBufferSize, bool());
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
index 0699e3b..18a920f 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc
@@ -57,10 +57,9 @@ void GLES2DecoderTestBase::InitDecoder(
InSequence sequence;
- TestHelper::SetupContextGroupInitExpectations(gl_.get(),
- DisallowedExtensions(), extensions);
+ TestHelper::SetupContextGroupInitExpectations(gl_.get(), extensions);
- EXPECT_TRUE(group_->Initialize(DisallowedExtensions(), extensions));
+ EXPECT_TRUE(group_->Initialize(extensions));
EXPECT_CALL(*gl_, GetIntegerv(GL_ALPHA_BITS, _))
.WillOnce(SetArgumentPointee<1>(has_alpha_backbuffer ? 8 : 0))
@@ -130,8 +129,7 @@ void GLES2DecoderTestBase::InitDecoder(
decoder_.reset(GLES2Decoder::Create(group_.get()));
decoder_->Initialize(
- context_, context_->GetSize(), DisallowedExtensions(),
- NULL, std::vector<int32>(), NULL, 0);
+ context_, context_->GetSize(), NULL, std::vector<int32>(), NULL, 0);
decoder_->set_engine(engine_.get());
EXPECT_CALL(*gl_, GenBuffersARB(_, _))
diff --git a/gpu/command_buffer/service/gpu_processor.cc b/gpu/command_buffer/service/gpu_processor.cc
index 45d21d7..b36db6a 100644
--- a/gpu/command_buffer/service/gpu_processor.cc
+++ b/gpu/command_buffer/service/gpu_processor.cc
@@ -52,14 +52,12 @@ GPUProcessor::~GPUProcessor() {
Destroy();
}
-bool GPUProcessor::InitializeCommon(
- gfx::GLContext* context,
- const gfx::Size& size,
- const gles2::DisallowedExtensions& disallowed_extensions,
- const char* allowed_extensions,
- const std::vector<int32>& attribs,
- gles2::GLES2Decoder* parent_decoder,
- uint32 parent_texture_id) {
+bool GPUProcessor::InitializeCommon(gfx::GLContext* context,
+ const gfx::Size& size,
+ const char* allowed_extensions,
+ const std::vector<int32>& attribs,
+ gles2::GLES2Decoder* parent_decoder,
+ uint32 parent_texture_id) {
DCHECK(context);
if (!context->MakeCurrent())
@@ -92,7 +90,6 @@ bool GPUProcessor::InitializeCommon(
// Initialize the decoder with either the view or pbuffer GLContext.
if (!decoder_->Initialize(context,
size,
- disallowed_extensions,
allowed_extensions,
attribs,
parent_decoder,
diff --git a/gpu/command_buffer/service/gpu_processor.h b/gpu/command_buffer/service/gpu_processor.h
index 6816d16..b76b6e3 100644
--- a/gpu/command_buffer/service/gpu_processor.h
+++ b/gpu/command_buffer/service/gpu_processor.h
@@ -52,7 +52,6 @@ class GPUProcessor : public CommandBufferEngine {
// Perform platform specific and common initialization.
bool Initialize(gfx::PluginWindowHandle hwnd,
const gfx::Size& size,
- const gles2::DisallowedExtensions& disallowed_extensions,
const char* allowed_extensions,
const std::vector<int32>& attribs,
GPUProcessor* parent,
@@ -117,14 +116,12 @@ class GPUProcessor : public CommandBufferEngine {
protected:
// Perform common initialization. Takes ownership of GLContext.
- bool InitializeCommon(
- gfx::GLContext* context,
- const gfx::Size& size,
- const gles2::DisallowedExtensions& disallowed_extensions,
- const char* allowed_extensions,
- const std::vector<int32>& attribs,
- gles2::GLES2Decoder* parent_decoder,
- uint32 parent_texture_id);
+ bool InitializeCommon(gfx::GLContext* context,
+ const gfx::Size& size,
+ const char* allowed_extensions,
+ const std::vector<int32>& attribs,
+ gles2::GLES2Decoder* parent_decoder,
+ uint32 parent_texture_id);
private:
diff --git a/gpu/command_buffer/service/gpu_processor_linux.cc b/gpu/command_buffer/service/gpu_processor_linux.cc
index 5627d63..cca8663 100644
--- a/gpu/command_buffer/service/gpu_processor_linux.cc
+++ b/gpu/command_buffer/service/gpu_processor_linux.cc
@@ -9,14 +9,12 @@ using ::base::SharedMemory;
namespace gpu {
-bool GPUProcessor::Initialize(
- gfx::PluginWindowHandle window,
- const gfx::Size& size,
- const gles2::DisallowedExtensions& disallowed_extensions,
- const char* allowed_extensions,
- const std::vector<int32>& attribs,
- GPUProcessor* parent,
- uint32 parent_texture_id) {
+bool GPUProcessor::Initialize(gfx::PluginWindowHandle window,
+ const gfx::Size& size,
+ const char* allowed_extensions,
+ const std::vector<int32>& attribs,
+ GPUProcessor* parent,
+ uint32 parent_texture_id) {
// Get the parent decoder and the GLContext to share IDs with, if any.
gles2::GLES2Decoder* parent_decoder = NULL;
gfx::GLContext* parent_context = NULL;
@@ -47,7 +45,6 @@ bool GPUProcessor::Initialize(
return InitializeCommon(context.release(),
size,
- disallowed_extensions,
allowed_extensions,
attribs,
parent_decoder,
diff --git a/gpu/command_buffer/service/gpu_processor_mac.cc b/gpu/command_buffer/service/gpu_processor_mac.cc
index 757de57..4d9ba18 100644
--- a/gpu/command_buffer/service/gpu_processor_mac.cc
+++ b/gpu/command_buffer/service/gpu_processor_mac.cc
@@ -9,14 +9,12 @@ using ::base::SharedMemory;
namespace gpu {
-bool GPUProcessor::Initialize(
- gfx::PluginWindowHandle window,
- const gfx::Size& size,
- const gles2::DisallowedExtensions& disallowed_extensions,
- const char* allowed_extensions,
- const std::vector<int32>& attribs,
- GPUProcessor* parent,
- uint32 parent_texture_id) {
+bool GPUProcessor::Initialize(gfx::PluginWindowHandle window,
+ const gfx::Size& size,
+ const char* allowed_extensions,
+ const std::vector<int32>& attribs,
+ GPUProcessor* parent,
+ uint32 parent_texture_id) {
// Get the parent decoder and the GLContext to share IDs with, if any.
gles2::GLES2Decoder* parent_decoder = NULL;
gfx::GLContext* parent_context = NULL;
@@ -55,7 +53,6 @@ bool GPUProcessor::Initialize(
return InitializeCommon(context.release(),
size,
- disallowed_extensions,
allowed_extensions,
attribs,
parent_decoder,
diff --git a/gpu/command_buffer/service/gpu_processor_win.cc b/gpu/command_buffer/service/gpu_processor_win.cc
index 465cf5a..0ec6b1c 100644
--- a/gpu/command_buffer/service/gpu_processor_win.cc
+++ b/gpu/command_buffer/service/gpu_processor_win.cc
@@ -11,14 +11,12 @@ using ::base::SharedMemory;
namespace gpu {
-bool GPUProcessor::Initialize(
- gfx::PluginWindowHandle window,
- const gfx::Size& size,
- const gles2::DisallowedExtensions& disallowed_extensions,
- const char* allowed_extensions,
- const std::vector<int32>& attribs,
- GPUProcessor* parent,
- uint32 parent_texture_id) {
+bool GPUProcessor::Initialize(gfx::PluginWindowHandle window,
+ const gfx::Size& size,
+ const char* allowed_extensions,
+ const std::vector<int32>& attribs,
+ GPUProcessor* parent,
+ uint32 parent_texture_id) {
// Get the parent decoder and the GLContext to share IDs with, if any.
gles2::GLES2Decoder* parent_decoder = NULL;
gfx::GLContext* parent_context = NULL;
@@ -46,7 +44,6 @@ bool GPUProcessor::Initialize(
return InitializeCommon(context.release(),
size,
- disallowed_extensions,
allowed_extensions,
attribs,
parent_decoder,
diff --git a/gpu/command_buffer/service/test_helper.cc b/gpu/command_buffer/service/test_helper.cc
index 3de75d5..9deac87 100644
--- a/gpu/command_buffer/service/test_helper.cc
+++ b/gpu/command_buffer/service/test_helper.cc
@@ -92,9 +92,7 @@ void TestHelper::SetupTextureManagerInitExpectations(
}
void TestHelper::SetupContextGroupInitExpectations(
- ::gfx::MockGLInterface* gl,
- const DisallowedExtensions& disallowed_extensions,
- const char* extensions) {
+ ::gfx::MockGLInterface* gl, const char* extensions) {
InSequence sequence;
SetupFeatureInfoInitExpectations(gl, extensions);
diff --git a/gpu/command_buffer/service/test_helper.h b/gpu/command_buffer/service/test_helper.h
index b23a7f1..6c56224 100644
--- a/gpu/command_buffer/service/test_helper.h
+++ b/gpu/command_buffer/service/test_helper.h
@@ -11,8 +11,6 @@
namespace gpu {
namespace gles2 {
-struct DisallowedExtensions;
-
class TestHelper {
public:
static const GLuint kServiceBlackTexture2dId = 701;
@@ -36,9 +34,7 @@ class TestHelper {
static const GLint kMaxVertexUniformComponents = kMaxVertexUniformVectors * 4;
static void SetupContextGroupInitExpectations(
- ::gfx::MockGLInterface* gl,
- const DisallowedExtensions& disallowed_extensions,
- const char* extensions);
+ ::gfx::MockGLInterface* gl, const char* extensions);
static void SetupFeatureInfoInitExpectations(
::gfx::MockGLInterface* gl, const char* extensions);
static void SetupTextureManagerInitExpectations(::gfx::MockGLInterface* gl);
diff --git a/gpu/demos/framework/window.cc b/gpu/demos/framework/window.cc
index 1440110..825025ef 100644
--- a/gpu/demos/framework/window.cc
+++ b/gpu/demos/framework/window.cc
@@ -61,9 +61,7 @@ bool Window::CreateRenderContext(gfx::PluginWindowHandle hwnd) {
GPUProcessor* gpu_processor(
new GPUProcessor(command_buffer.get(), NULL));
- if (!gpu_processor->Initialize(hwnd, gfx::Size(),
- gpu::gles2::DisallowedExtensions(),
- NULL, std::vector<int32>(),
+ if (!gpu_processor->Initialize(hwnd, gfx::Size(), NULL, std::vector<int32>(),
NULL, 0)) {
return false;
}