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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 bool GLSurface::Recreate() { | 45 bool GLSurface::Recreate() { |
46 NOTIMPLEMENTED(); | 46 NOTIMPLEMENTED(); |
47 return false; | 47 return false; |
48 } | 48 } |
49 | 49 |
50 bool GLSurface::DeferDraws() { | 50 bool GLSurface::DeferDraws() { |
51 return false; | 51 return false; |
52 } | 52 } |
53 | 53 |
| 54 bool GLSurface::SupportsSwapBuffersWithDamage() { |
| 55 return false; |
| 56 } |
| 57 |
54 bool GLSurface::SupportsPostSubBuffer() { | 58 bool GLSurface::SupportsPostSubBuffer() { |
55 return false; | 59 return false; |
56 } | 60 } |
57 | 61 |
58 bool GLSurface::SupportsCommitOverlayPlanes() { | 62 bool GLSurface::SupportsCommitOverlayPlanes() { |
59 return false; | 63 return false; |
60 } | 64 } |
61 | 65 |
62 bool GLSurface::SupportsAsyncSwap() { | 66 bool GLSurface::SupportsAsyncSwap() { |
63 return false; | 67 return false; |
64 } | 68 } |
65 | 69 |
66 unsigned int GLSurface::GetBackingFramebufferObject() { | 70 unsigned int GLSurface::GetBackingFramebufferObject() { |
67 return 0; | 71 return 0; |
68 } | 72 } |
69 | 73 |
70 void GLSurface::SwapBuffersAsync(const SwapCompletionCallback& callback) { | 74 void GLSurface::SwapBuffersAsync(const SwapCompletionCallback& callback) { |
71 NOTREACHED(); | 75 NOTREACHED(); |
72 } | 76 } |
73 | 77 |
| 78 gfx::SwapResult GLSurface::SwapBuffersWithDamage(int x, |
| 79 int y, |
| 80 int width, |
| 81 int height) { |
| 82 return gfx::SwapResult::SWAP_FAILED; |
| 83 } |
| 84 |
74 gfx::SwapResult GLSurface::PostSubBuffer(int x, int y, int width, int height) { | 85 gfx::SwapResult GLSurface::PostSubBuffer(int x, int y, int width, int height) { |
75 return gfx::SwapResult::SWAP_FAILED; | 86 return gfx::SwapResult::SWAP_FAILED; |
76 } | 87 } |
77 | 88 |
78 void GLSurface::PostSubBufferAsync(int x, | 89 void GLSurface::PostSubBufferAsync(int x, |
79 int y, | 90 int y, |
80 int width, | 91 int width, |
81 int height, | 92 int height, |
82 const SwapCompletionCallback& callback) { | 93 const SwapCompletionCallback& callback) { |
83 NOTREACHED(); | 94 NOTREACHED(); |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 return nullptr; | 345 return nullptr; |
335 return surface; | 346 return surface; |
336 } | 347 } |
337 | 348 |
338 GLSurface::CALayerInUseQuery::CALayerInUseQuery() = default; | 349 GLSurface::CALayerInUseQuery::CALayerInUseQuery() = default; |
339 GLSurface::CALayerInUseQuery::CALayerInUseQuery(const CALayerInUseQuery&) = | 350 GLSurface::CALayerInUseQuery::CALayerInUseQuery(const CALayerInUseQuery&) = |
340 default; | 351 default; |
341 GLSurface::CALayerInUseQuery::~CALayerInUseQuery() = default; | 352 GLSurface::CALayerInUseQuery::~CALayerInUseQuery() = default; |
342 | 353 |
343 } // namespace gl | 354 } // namespace gl |
OLD | NEW |