| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "gpu/gles2_conform_support/egl/display.h" | 5 #include "gpu/gles2_conform_support/egl/display.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
| 10 #include "gpu/command_buffer/client/gles2_implementation.h" | 10 #include "gpu/command_buffer/client/gles2_implementation.h" |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 DCHECK(IsValidContext(ctx)); | 266 DCHECK(IsValidContext(ctx)); |
| 267 gles2::SetGLContext(context_.get()); | 267 gles2::SetGLContext(context_.get()); |
| 268 } | 268 } |
| 269 return true; | 269 return true; |
| 270 } | 270 } |
| 271 | 271 |
| 272 gpu::Capabilities Display::GetCapabilities() { | 272 gpu::Capabilities Display::GetCapabilities() { |
| 273 return decoder_->GetCapabilities(); | 273 return decoder_->GetCapabilities(); |
| 274 } | 274 } |
| 275 | 275 |
| 276 gfx::GpuMemoryBuffer* Display::CreateGpuMemoryBuffer( | 276 int32_t Display::CreateImage(ClientBuffer buffer, |
| 277 size_t width, | 277 size_t width, |
| 278 size_t height, | 278 size_t height, |
| 279 unsigned internalformat, | 279 unsigned internalformat) { |
| 280 unsigned usage, | |
| 281 int32* id) { | |
| 282 NOTIMPLEMENTED(); | 280 NOTIMPLEMENTED(); |
| 283 return NULL; | 281 return -1; |
| 284 } | 282 } |
| 285 | 283 |
| 286 void Display::DestroyGpuMemoryBuffer(int32 id) { | 284 void Display::DestroyImage(int32 id) { |
| 287 NOTIMPLEMENTED(); | 285 NOTIMPLEMENTED(); |
| 288 } | 286 } |
| 289 | 287 |
| 288 int32_t Display::CreateGpuMemoryBufferImage(size_t width, |
| 289 size_t height, |
| 290 unsigned internalformat, |
| 291 unsigned usage) { |
| 292 NOTIMPLEMENTED(); |
| 293 return -1; |
| 294 } |
| 295 |
| 290 uint32 Display::InsertSyncPoint() { | 296 uint32 Display::InsertSyncPoint() { |
| 291 NOTIMPLEMENTED(); | 297 NOTIMPLEMENTED(); |
| 292 return 0u; | 298 return 0u; |
| 293 } | 299 } |
| 294 | 300 |
| 295 uint32 Display::InsertFutureSyncPoint() { | 301 uint32 Display::InsertFutureSyncPoint() { |
| 296 NOTIMPLEMENTED(); | 302 NOTIMPLEMENTED(); |
| 297 return 0u; | 303 return 0u; |
| 298 } | 304 } |
| 299 | 305 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 313 void Display::SetSurfaceVisible(bool visible) { | 319 void Display::SetSurfaceVisible(bool visible) { |
| 314 NOTIMPLEMENTED(); | 320 NOTIMPLEMENTED(); |
| 315 } | 321 } |
| 316 | 322 |
| 317 uint32 Display::CreateStreamTexture(uint32 texture_id) { | 323 uint32 Display::CreateStreamTexture(uint32 texture_id) { |
| 318 NOTIMPLEMENTED(); | 324 NOTIMPLEMENTED(); |
| 319 return 0; | 325 return 0; |
| 320 } | 326 } |
| 321 | 327 |
| 322 } // namespace egl | 328 } // namespace egl |
| OLD | NEW |