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

Side by Side Diff: gpu/ipc/service/stream_texture_android.h

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void OnFrameAvailable(); 74 void OnFrameAvailable();
75 75
76 // IPC::Listener implementation: 76 // IPC::Listener implementation:
77 bool OnMessageReceived(const IPC::Message& message) override; 77 bool OnMessageReceived(const IPC::Message& message) override;
78 78
79 // IPC message handlers: 79 // IPC message handlers:
80 void OnStartListening(); 80 void OnStartListening();
81 void OnEstablishPeer(int32_t primary_id, int32_t secondary_id); 81 void OnEstablishPeer(int32_t primary_id, int32_t secondary_id);
82 void OnSetSize(const gfx::Size& size) { size_ = size; } 82 void OnSetSize(const gfx::Size& size) { size_ = size; }
83 83
84 scoped_refptr<gfx::SurfaceTexture> surface_texture_; 84 scoped_refptr<gl::SurfaceTexture> surface_texture_;
85 85
86 // Current transform matrix of the surface texture. 86 // Current transform matrix of the surface texture.
87 float current_matrix_[16]; 87 float current_matrix_[16];
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 uint32_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/pass_through_image_transport_surface.cc ('k') | gpu/ipc/service/stream_texture_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698