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

Side by Side Diff: media/renderers/mock_gpu_video_accelerator_factories.cc

Issue 1280513002: Add GenericSharedMemoryId and use w/ GpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trackpools
Patch Set: remove "tracing" from name Created 5 years, 4 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
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.cc ('k') | ui/gfx/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "media/renderers/mock_gpu_video_accelerator_factories.h" 5 #include "media/renderers/mock_gpu_video_accelerator_factories.h"
6 6
7 #include "ui/gfx/gpu_memory_buffer.h" 7 #include "ui/gfx/gpu_memory_buffer.h"
8 8
9 namespace media { 9 namespace media {
10 10
(...skipping 14 matching lines...) Expand all
25 bool IsMapped() const override { 25 bool IsMapped() const override {
26 NOTREACHED(); 26 NOTREACHED();
27 return false; 27 return false;
28 } 28 }
29 gfx::BufferFormat GetFormat() const override { 29 gfx::BufferFormat GetFormat() const override {
30 return gfx::BufferFormat::R_8; 30 return gfx::BufferFormat::R_8;
31 } 31 }
32 void GetStride(int* stride) const override { stride[0] = size_.width(); } 32 void GetStride(int* stride) const override { stride[0] = size_.width(); }
33 gfx::GpuMemoryBufferId GetId() const override { 33 gfx::GpuMemoryBufferId GetId() const override {
34 NOTREACHED(); 34 NOTREACHED();
35 return 0; 35 return gfx::GpuMemoryBufferId(0);
36 } 36 }
37 gfx::GpuMemoryBufferHandle GetHandle() const override { 37 gfx::GpuMemoryBufferHandle GetHandle() const override {
38 NOTREACHED(); 38 NOTREACHED();
39 return gfx::GpuMemoryBufferHandle(); 39 return gfx::GpuMemoryBufferHandle();
40 } 40 }
41 ClientBuffer AsClientBuffer() override { 41 ClientBuffer AsClientBuffer() override {
42 return reinterpret_cast<ClientBuffer>(this); 42 return reinterpret_cast<ClientBuffer>(this);
43 } 43 }
44 44
45 private: 45 private:
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 scoped_ptr<VideoEncodeAccelerator> 79 scoped_ptr<VideoEncodeAccelerator>
80 MockGpuVideoAcceleratorFactories::CreateVideoEncodeAccelerator() { 80 MockGpuVideoAcceleratorFactories::CreateVideoEncodeAccelerator() {
81 return scoped_ptr<VideoEncodeAccelerator>(DoCreateVideoEncodeAccelerator()); 81 return scoped_ptr<VideoEncodeAccelerator>(DoCreateVideoEncodeAccelerator());
82 } 82 }
83 83
84 unsigned MockGpuVideoAcceleratorFactories::ImageTextureTarget() { 84 unsigned MockGpuVideoAcceleratorFactories::ImageTextureTarget() {
85 return GL_TEXTURE_2D; 85 return GL_TEXTURE_2D;
86 } 86 }
87 87
88 } // namespace media 88 } // namespace media
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.cc ('k') | ui/gfx/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698