| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "cc/test/pixel_test_output_surface.h" | 5 #include "cc/test/pixel_test_output_surface.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 return false; | 94 return false; |
| 95 } | 95 } |
| 96 | 96 |
| 97 uint32_t PixelTestOutputSurface::GetFramebufferCopyTextureFormat() { | 97 uint32_t PixelTestOutputSurface::GetFramebufferCopyTextureFormat() { |
| 98 // This format will work if the |context_provider| has an RGB or RGBA | 98 // This format will work if the |context_provider| has an RGB or RGBA |
| 99 // framebuffer. For now assume tests do not want/care about alpha in | 99 // framebuffer. For now assume tests do not want/care about alpha in |
| 100 // the root render pass. | 100 // the root render pass. |
| 101 return GL_RGB; | 101 return GL_RGB; |
| 102 } | 102 } |
| 103 | 103 |
| 104 bool PixelTestOutputSurface::CanPartialDraw(const gfx::Rect& damage) { |
| 105 return false; |
| 106 } |
| 107 |
| 104 } // namespace cc | 108 } // namespace cc |
| OLD | NEW |