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

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

Issue 1845563005: Refactor content/common/gpu into gpu/ipc/service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drop ref to deleted content_tests_gypi_values.content_unittests_ozone_sources Created 4 years, 8 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 CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ 5 #ifndef GPU_IPC_SERVICE_STREAM_TEXTURE_ANDROID_H_
6 #define CONTENT_COMMON_GPU_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 "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "content/common/gpu/gpu_command_buffer_stub.h"
13 #include "gpu/command_buffer/service/gl_stream_texture_image.h" 12 #include "gpu/command_buffer/service/gl_stream_texture_image.h"
13 #include "gpu/ipc/service/gpu_command_buffer_stub.h"
14 #include "ipc/ipc_listener.h" 14 #include "ipc/ipc_listener.h"
15 #include "ui/gl/android/surface_texture.h" 15 #include "ui/gl/android/surface_texture.h"
16 #include "ui/gl/gl_image.h" 16 #include "ui/gl/gl_image.h"
17 17
18 namespace ui { 18 namespace ui {
19 class ScopedMakeCurrent; 19 class ScopedMakeCurrent;
20 } 20 }
21 21
22 namespace gfx { 22 namespace gfx {
23 class Size; 23 class Size;
24 } 24 }
25 25
26 namespace content { 26 namespace gpu {
27 27
28 class StreamTexture : public gpu::gles2::GLStreamTextureImage, 28 class StreamTexture : public gpu::gles2::GLStreamTextureImage,
29 public IPC::Listener, 29 public IPC::Listener,
30 public GpuCommandBufferStub::DestructionObserver { 30 public GpuCommandBufferStub::DestructionObserver {
31 public: 31 public:
32 static bool Create(GpuCommandBufferStub* owner_stub, 32 static bool Create(GpuCommandBufferStub* owner_stub,
33 uint32_t client_texture_id, 33 uint32_t client_texture_id,
34 int stream_id); 34 int stream_id);
35 35
36 private: 36 private:
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 unsigned vertex_shader_; 99 unsigned vertex_shader_;
100 unsigned fragment_shader_; 100 unsigned fragment_shader_;
101 unsigned program_; 101 unsigned program_;
102 unsigned vertex_buffer_; 102 unsigned vertex_buffer_;
103 int u_xform_location_; 103 int u_xform_location_;
104 104
105 base::WeakPtrFactory<StreamTexture> weak_factory_; 105 base::WeakPtrFactory<StreamTexture> weak_factory_;
106 DISALLOW_COPY_AND_ASSIGN(StreamTexture); 106 DISALLOW_COPY_AND_ASSIGN(StreamTexture);
107 }; 107 };
108 108
109 } // namespace content 109 } // namespace gpu
110 110
111 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ 111 #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