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

Unified Diff: gpu/command_buffer/tests/gl_manager.cc

Issue 10106015: Allow textures to be moved from one GL context group to another. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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/tests/gl_manager.h ('k') | gpu/command_buffer/tests/gl_texture_mailbox_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/gl_manager.cc
===================================================================
--- gpu/command_buffer/tests/gl_manager.cc (revision 134729)
+++ gpu/command_buffer/tests/gl_manager.cc (working copy)
@@ -9,9 +9,10 @@
#include "gpu/command_buffer/client/gles2_implementation.h"
#include "gpu/command_buffer/client/transfer_buffer.h"
#include "gpu/command_buffer/common/constants.h"
+#include "gpu/command_buffer/service/command_buffer_service.h"
#include "gpu/command_buffer/service/context_group.h"
#include "gpu/command_buffer/service/gpu_scheduler.h"
-#include "gpu/command_buffer/service/command_buffer_service.h"
+#include "gpu/command_buffer/service/mailbox_manager.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/gl/gl_context.h"
#include "ui/gfx/gl/gl_share_group.h"
@@ -19,7 +20,10 @@
namespace gpu {
-GLManager::GLManager() {
+GLManager::GLManager(gles2::MailboxManager* mailbox_manager,
+ gfx::GLShareGroup* share_group)
+ : mailbox_manager_(mailbox_manager),
+ share_group_(share_group) {
}
GLManager::~GLManager() {
@@ -54,13 +58,12 @@
attribs.push_back(16);
attribs.push_back(EGL_NONE);
- share_group_ = new gfx::GLShareGroup;
command_buffer_.reset(new CommandBufferService);
ASSERT_TRUE(command_buffer_->Initialize())
<< "could not create command buffer service";
decoder_.reset(::gpu::gles2::GLES2Decoder::Create(
- new gles2::ContextGroup(false)));
+ new gles2::ContextGroup(mailbox_manager_.get(), false)));
gpu_scheduler_.reset(new GpuScheduler(command_buffer_.get(),
decoder_.get(),
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.h ('k') | gpu/command_buffer/tests/gl_texture_mailbox_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698