OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/command_buffer/tests/texture_image_factory.h" | 5 #include "gpu/command_buffer/tests/texture_image_factory.h" |
6 | 6 |
7 #include "ui/gl/gl_bindings.h" | 7 #include "ui/gl/gl_bindings.h" |
8 #include "ui/gl/gl_image.h" | 8 #include "ui/gl/gl_image.h" |
9 | 9 |
10 namespace gpu { | 10 namespace gpu { |
(...skipping 23 matching lines...) Expand all Loading... |
34 } | 34 } |
35 | 35 |
36 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 36 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
37 int z_order, | 37 int z_order, |
38 gfx::OverlayTransform transform, | 38 gfx::OverlayTransform transform, |
39 const gfx::Rect& bounds_rect, | 39 const gfx::Rect& bounds_rect, |
40 const gfx::RectF& crop_rect) override { | 40 const gfx::RectF& crop_rect) override { |
41 return false; | 41 return false; |
42 } | 42 } |
43 | 43 |
| 44 void Flush() override {} |
| 45 |
44 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, | 46 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, |
45 uint64_t process_tracing_id, | 47 uint64_t process_tracing_id, |
46 const std::string& dump_name) override {} | 48 const std::string& dump_name) override {} |
47 | 49 |
48 private: | 50 private: |
49 ~TextureImage() override {} | 51 ~TextureImage() override {} |
50 gfx::Size size_; | 52 gfx::Size size_; |
51 }; | 53 }; |
52 | 54 |
53 scoped_refptr<gl::GLImage> TextureImageFactory::CreateImageForGpuMemoryBuffer( | 55 scoped_refptr<gl::GLImage> TextureImageFactory::CreateImageForGpuMemoryBuffer( |
(...skipping 18 matching lines...) Expand all Loading... |
72 | 74 |
73 bool TextureImageFactory::SupportsFormatRGB() { | 75 bool TextureImageFactory::SupportsFormatRGB() { |
74 return false; | 76 return false; |
75 } | 77 } |
76 | 78 |
77 void TextureImageFactory::SetRequiredTextureType(unsigned type) { | 79 void TextureImageFactory::SetRequiredTextureType(unsigned type) { |
78 required_texture_type_ = type; | 80 required_texture_type_ = type; |
79 } | 81 } |
80 | 82 |
81 } // namespace gpu | 83 } // namespace gpu |
OLD | NEW |