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/ipc/service/stream_texture_android.h

Issue 1129943006: Implement StreamTexture::BindTexImage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/ipc/service/gpu_command_buffer_stub.cc ('k') | gpu/ipc/service/stream_texture_android.cc » ('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 (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 GPU_IPC_SERVICE_STREAM_TEXTURE_ANDROID_H_ 5 #ifndef GPU_IPC_SERVICE_STREAM_TEXTURE_ANDROID_H_
6 #define GPU_IPC_SERVICE_STREAM_TEXTURE_ANDROID_H_ 6 #define GPU_IPC_SERVICE_STREAM_TEXTURE_ANDROID_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 14 matching lines...) Expand all
25 class Size; 25 class Size;
26 } 26 }
27 27
28 namespace gpu { 28 namespace gpu {
29 29
30 class StreamTexture : public gpu::gles2::GLStreamTextureImage, 30 class StreamTexture : public gpu::gles2::GLStreamTextureImage,
31 public IPC::Listener, 31 public IPC::Listener,
32 public GpuCommandBufferStub::DestructionObserver { 32 public GpuCommandBufferStub::DestructionObserver {
33 public: 33 public:
34 static bool Create(GpuCommandBufferStub* owner_stub, 34 static bool Create(GpuCommandBufferStub* owner_stub,
35 uint32_t client_texture_id, 35 int32_t image_id,
36 int stream_id); 36 int stream_id);
37 37
38 private: 38 private:
39 StreamTexture(GpuCommandBufferStub* owner_stub, 39 StreamTexture(GpuCommandBufferStub* owner_stub,
40 int32_t route_id, 40 int32_t route_id,
41 uint32_t texture_id); 41 int32_t texture_id);
42 ~StreamTexture() override; 42 ~StreamTexture() override;
43 43
44 // gl::GLImage implementation: 44 // gl::GLImage implementation:
45 void Destroy(bool have_context) override; 45 void Destroy(bool have_context) override;
46 gfx::Size GetSize() override; 46 gfx::Size GetSize() override;
47 unsigned GetInternalFormat() override; 47 unsigned GetInternalFormat() override;
48 bool BindTexImage(unsigned target) override; 48 bool BindTexImage(unsigned target) override;
49 void ReleaseTexImage(unsigned target) override; 49 void ReleaseTexImage(unsigned target) override;
50 bool CopyTexImage(unsigned target) override; 50 bool CopyTexImage(unsigned target) override;
51 bool CopyTexSubImage(unsigned target, 51 bool CopyTexSubImage(unsigned target,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 // Current size of the surface texture. 89 // Current size of the surface texture.
90 gfx::Size size_; 90 gfx::Size size_;
91 91
92 // Whether a new frame is available that we should update to. 92 // Whether a new frame is available that we should update to.
93 bool has_pending_frame_; 93 bool has_pending_frame_;
94 94
95 GpuCommandBufferStub* owner_stub_; 95 GpuCommandBufferStub* owner_stub_;
96 int32_t route_id_; 96 int32_t route_id_;
97 bool has_listener_; 97 bool has_listener_;
98 uint32_t texture_id_; 98 int32_t texture_id_;
99 99
100 unsigned framebuffer_; 100 unsigned framebuffer_;
101 unsigned vertex_shader_; 101 unsigned vertex_shader_;
102 unsigned fragment_shader_; 102 unsigned fragment_shader_;
103 unsigned program_; 103 unsigned program_;
104 unsigned vertex_buffer_; 104 unsigned vertex_buffer_;
105 int u_xform_location_; 105 int u_xform_location_;
106 106
107 base::WeakPtrFactory<StreamTexture> weak_factory_; 107 base::WeakPtrFactory<StreamTexture> weak_factory_;
108 DISALLOW_COPY_AND_ASSIGN(StreamTexture); 108 DISALLOW_COPY_AND_ASSIGN(StreamTexture);
109 }; 109 };
110 110
111 } // namespace gpu 111 } // namespace gpu
112 112
113 #endif // GPU_IPC_SERVICE_STREAM_TEXTURE_ANDROID_H_ 113 #endif // GPU_IPC_SERVICE_STREAM_TEXTURE_ANDROID_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_command_buffer_stub.cc ('k') | gpu/ipc/service/stream_texture_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698