Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: gpu/command_buffer/tests/texture_image_factory.cc

Issue 2109803003: Add support for EXT_image_flush_external extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add support for EXT_image_flush_external extension Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 26 matching lines...) Expand all
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 OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, 44 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
45 uint64_t process_tracing_id, 45 uint64_t process_tracing_id,
46 const std::string& dump_name) override {} 46 const std::string& dump_name) override {}
47 void Flush() override {}
47 48
48 private: 49 private:
49 ~TextureImage() override {} 50 ~TextureImage() override {}
50 gfx::Size size_; 51 gfx::Size size_;
51 }; 52 };
52 53
53 scoped_refptr<gl::GLImage> TextureImageFactory::CreateImageForGpuMemoryBuffer( 54 scoped_refptr<gl::GLImage> TextureImageFactory::CreateImageForGpuMemoryBuffer(
54 const gfx::GpuMemoryBufferHandle& handle, 55 const gfx::GpuMemoryBufferHandle& handle,
55 const gfx::Size& size, 56 const gfx::Size& size,
56 gfx::BufferFormat format, 57 gfx::BufferFormat format,
(...skipping 15 matching lines...) Expand all
72 73
73 bool TextureImageFactory::SupportsFormatRGB() { 74 bool TextureImageFactory::SupportsFormatRGB() {
74 return false; 75 return false;
75 } 76 }
76 77
77 void TextureImageFactory::SetRequiredTextureType(unsigned type) { 78 void TextureImageFactory::SetRequiredTextureType(unsigned type) {
78 required_texture_type_ = type; 79 required_texture_type_ = type;
79 } 80 }
80 81
81 } // namespace gpu 82 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698