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 "ui/gl/gl_surface.h" | 5 #include "ui/gl/gl_surface.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 } | 56 } |
57 | 57 |
58 bool GLSurface::SupportsCommitOverlayPlanes() { | 58 bool GLSurface::SupportsCommitOverlayPlanes() { |
59 return false; | 59 return false; |
60 } | 60 } |
61 | 61 |
62 bool GLSurface::SupportsAsyncSwap() { | 62 bool GLSurface::SupportsAsyncSwap() { |
63 return false; | 63 return false; |
64 } | 64 } |
65 | 65 |
66 unsigned int GLSurface::GetBackingFrameBufferObject() { | 66 unsigned int GLSurface::GetBackingFramebufferObject() { |
67 return 0; | 67 return 0; |
68 } | 68 } |
69 | 69 |
70 void GLSurface::SwapBuffersAsync(const SwapCompletionCallback& callback) { | 70 void GLSurface::SwapBuffersAsync(const SwapCompletionCallback& callback) { |
71 NOTREACHED(); | 71 NOTREACHED(); |
72 } | 72 } |
73 | 73 |
74 gfx::SwapResult GLSurface::PostSubBuffer(int x, int y, int width, int height) { | 74 gfx::SwapResult GLSurface::PostSubBuffer(int x, int y, int width, int height) { |
75 return gfx::SwapResult::SWAP_FAILED; | 75 return gfx::SwapResult::SWAP_FAILED; |
76 } | 76 } |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 } | 263 } |
264 | 264 |
265 gfx::Size GLSurfaceAdapter::GetSize() { | 265 gfx::Size GLSurfaceAdapter::GetSize() { |
266 return surface_->GetSize(); | 266 return surface_->GetSize(); |
267 } | 267 } |
268 | 268 |
269 void* GLSurfaceAdapter::GetHandle() { | 269 void* GLSurfaceAdapter::GetHandle() { |
270 return surface_->GetHandle(); | 270 return surface_->GetHandle(); |
271 } | 271 } |
272 | 272 |
273 unsigned int GLSurfaceAdapter::GetBackingFrameBufferObject() { | 273 unsigned int GLSurfaceAdapter::GetBackingFramebufferObject() { |
274 return surface_->GetBackingFrameBufferObject(); | 274 return surface_->GetBackingFramebufferObject(); |
275 } | 275 } |
276 | 276 |
277 bool GLSurfaceAdapter::OnMakeCurrent(GLContext* context) { | 277 bool GLSurfaceAdapter::OnMakeCurrent(GLContext* context) { |
278 return surface_->OnMakeCurrent(context); | 278 return surface_->OnMakeCurrent(context); |
279 } | 279 } |
280 | 280 |
281 bool GLSurfaceAdapter::SetBackbufferAllocation(bool allocated) { | 281 bool GLSurfaceAdapter::SetBackbufferAllocation(bool allocated) { |
282 return surface_->SetBackbufferAllocation(allocated); | 282 return surface_->SetBackbufferAllocation(allocated); |
283 } | 283 } |
284 | 284 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 return nullptr; | 334 return nullptr; |
335 return surface; | 335 return surface; |
336 } | 336 } |
337 | 337 |
338 GLSurface::CALayerInUseQuery::CALayerInUseQuery() = default; | 338 GLSurface::CALayerInUseQuery::CALayerInUseQuery() = default; |
339 GLSurface::CALayerInUseQuery::CALayerInUseQuery(const CALayerInUseQuery&) = | 339 GLSurface::CALayerInUseQuery::CALayerInUseQuery(const CALayerInUseQuery&) = |
340 default; | 340 default; |
341 GLSurface::CALayerInUseQuery::~CALayerInUseQuery() = default; | 341 GLSurface::CALayerInUseQuery::~CALayerInUseQuery() = default; |
342 | 342 |
343 } // namespace gl | 343 } // namespace gl |
OLD | NEW |