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

Unified Diff: gpu/gles2_conform_support/egl/display.cc

Issue 235563002: gpu: Separate GpuControlService from GpuControl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove MailboxManager Created 6 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
Index: gpu/gles2_conform_support/egl/display.cc
diff --git a/gpu/gles2_conform_support/egl/display.cc b/gpu/gles2_conform_support/egl/display.cc
index 7e8829749ce771a6a9d8daa6e7ba0c6b1c6ba5a8..fd2eba439ea8a217602b5e6a0f84b2de26599237 100644
--- a/gpu/gles2_conform_support/egl/display.cc
+++ b/gpu/gles2_conform_support/egl/display.cc
@@ -11,7 +11,6 @@
#include "gpu/command_buffer/client/gles2_lib.h"
#include "gpu/command_buffer/client/transfer_buffer.h"
#include "gpu/command_buffer/service/context_group.h"
-#include "gpu/command_buffer/service/gpu_control_service.h"
#include "gpu/command_buffer/service/transfer_buffer_manager.h"
#include "gpu/gles2_conform_support/egl/config.h"
#include "gpu/gles2_conform_support/egl/surface.h"
@@ -170,8 +169,7 @@ EGLSurface Display::CreateWindowSurface(EGLConfig config,
return EGL_NO_SURFACE;
}
- gpu_control_.reset(new gpu::GpuControlService(
- NULL, NULL, group->mailbox_manager(), NULL, decoder_->GetCapabilities()));
+ gpu_control_service_.reset(new gpu::GpuControlService(NULL, NULL));
command_buffer->SetPutOffsetChangeCallback(
base::Bind(&gpu::GpuScheduler::PutChanged,
@@ -237,7 +235,7 @@ EGLContext Display::CreateContext(EGLConfig config,
transfer_buffer_.get(),
bind_generates_resources,
lose_context_when_out_of_memory,
- gpu_control_.get()));
+ this));
if (!context_->Initialize(
kTransferBufferSize,
@@ -271,4 +269,52 @@ bool Display::MakeCurrent(EGLSurface draw, EGLSurface read, EGLContext ctx) {
return true;
}
+gpu::Capabilities Display::GetCapabilities() {
+ return decoder_->GetCapabilities();
+}
+
+gfx::GpuMemoryBuffer* Display::CreateGpuMemoryBuffer(
+ size_t width,
+ size_t height,
+ unsigned internalformat,
+ int32* id) {
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
+void Display::DestroyGpuMemoryBuffer(int32 id) {
+ NOTIMPLEMENTED();
+}
+
+uint32 Display::InsertSyncPoint() {
+ NOTIMPLEMENTED();
+ return 0u;
+}
+
+void Display::SignalSyncPoint(uint32 sync_point,
+ const base::Closure& callback) {
+ NOTIMPLEMENTED();
+}
+
+void Display::SignalQuery(uint32 query, const base::Closure& callback) {
+ NOTIMPLEMENTED();
+}
+
+void Display::SetSurfaceVisible(bool visible) {
+ NOTIMPLEMENTED();
+}
+
+void Display::SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats) {
+ NOTIMPLEMENTED();
+}
+
+void Display::Echo(const base::Closure& callback) {
+ NOTIMPLEMENTED();
+}
+
+uint32 Display::CreateStreamTexture(uint32 texture_id) {
+ NOTIMPLEMENTED();
+ return 0;
+}
+
} // namespace egl

Powered by Google App Engine
This is Rietveld 408576698