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

Side by Side Diff: content/common/gpu/stream_texture_android.h

Issue 1513283002: Add support to send optimal format as part of ScheduleOverlayPlane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update cmd_buffer_functions Created 5 years 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ 5 #ifndef CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_
6 #define CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ 6 #define CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/common/gpu/gpu_command_buffer_stub.h" 10 #include "content/common/gpu/gpu_command_buffer_stub.h"
(...skipping 27 matching lines...) Expand all
38 unsigned GetInternalFormat() override; 38 unsigned GetInternalFormat() override;
39 bool BindTexImage(unsigned target) override; 39 bool BindTexImage(unsigned target) override;
40 void ReleaseTexImage(unsigned target) override; 40 void ReleaseTexImage(unsigned target) override;
41 bool CopyTexImage(unsigned target) override; 41 bool CopyTexImage(unsigned target) override;
42 bool CopyTexSubImage(unsigned target, 42 bool CopyTexSubImage(unsigned target,
43 const gfx::Point& offset, 43 const gfx::Point& offset,
44 const gfx::Rect& rect) override; 44 const gfx::Rect& rect) override;
45 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 45 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
46 int z_order, 46 int z_order,
47 gfx::OverlayTransform transform, 47 gfx::OverlayTransform transform,
48 gfx::BufferFormat storage_format,
48 const gfx::Rect& bounds_rect, 49 const gfx::Rect& bounds_rect,
49 const gfx::RectF& crop_rect) override; 50 const gfx::RectF& crop_rect,
51 bool handle_scaling) override;
50 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, 52 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
51 uint64_t process_tracing_id, 53 uint64_t process_tracing_id,
52 const std::string& dump_name) override; 54 const std::string& dump_name) override;
53 55
54 // GpuCommandBufferStub::DestructionObserver implementation. 56 // GpuCommandBufferStub::DestructionObserver implementation.
55 void OnWillDestroyStub() override; 57 void OnWillDestroyStub() override;
56 58
57 // Called when a new frame is available for the SurfaceTexture. 59 // Called when a new frame is available for the SurfaceTexture.
58 void OnFrameAvailable(); 60 void OnFrameAvailable();
59 61
(...skipping 24 matching lines...) Expand all
84 bool has_listener_; 86 bool has_listener_;
85 uint32 texture_id_; 87 uint32 texture_id_;
86 88
87 base::WeakPtrFactory<StreamTexture> weak_factory_; 89 base::WeakPtrFactory<StreamTexture> weak_factory_;
88 DISALLOW_COPY_AND_ASSIGN(StreamTexture); 90 DISALLOW_COPY_AND_ASSIGN(StreamTexture);
89 }; 91 };
90 92
91 } // namespace content 93 } // namespace content
92 94
93 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ 95 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/avda_codec_image.cc ('k') | content/common/gpu/stream_texture_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698