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

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

Issue 465099: Removed command buffer's last dependency on NPAPI.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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/client/fenced_allocator_test.cc ('k') | gpu/command_buffer/service/cmd_parser_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gles2_demo.cc
===================================================================
--- gpu/command_buffer/client/gles2_demo.cc (revision 33880)
+++ gpu/command_buffer/client/gles2_demo.cc (working copy)
@@ -15,7 +15,6 @@
#include "base/scoped_ptr.h"
#include "gpu/command_buffer/service/gpu_processor.h"
#include "gpu/command_buffer/service/command_buffer_service.h"
-#include "gpu/np_utils/np_utils.h"
#include "gpu/command_buffer/client/gles2_implementation.h"
#include "gpu/command_buffer/client/gles2_lib.h"
#include "gpu/command_buffer/client/gles2_demo_c.h"
@@ -31,7 +30,7 @@
public:
GLES2Demo();
- bool GLES2Demo::Setup(NPP npp, void* hwnd, int32 size);
+ bool GLES2Demo::Setup(void* hwnd, int32 size);
private:
DISALLOW_COPY_AND_ASSIGN(GLES2Demo);
@@ -40,7 +39,7 @@
GLES2Demo::GLES2Demo() {
}
-bool GLES2Demo::Setup(NPP npp, void* hwnd, int32 size) {
+bool GLES2Demo::Setup(void* hwnd, int32 size) {
scoped_ptr<SharedMemory> ring_buffer(new SharedMemory);
if (!ring_buffer->Create(std::wstring(), false, false, size)) {
return NULL;
@@ -56,7 +55,7 @@
}
scoped_refptr<GPUProcessor> gpu_processor(
- new GPUProcessor(npp, command_buffer.get()));
+ new GPUProcessor(command_buffer.get()));
if (!gpu_processor->Initialize(reinterpret_cast<HWND>(hwnd))) {
return NULL;
}
@@ -201,7 +200,7 @@
return EXIT_FAILURE;
}
- demo->Setup(NULL, hwnd, kCommandBufferSize);
+ demo->Setup(hwnd, kCommandBufferSize);
ProcessMessages(hwnd);
« no previous file with comments | « gpu/command_buffer/client/fenced_allocator_test.cc ('k') | gpu/command_buffer/service/cmd_parser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698