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

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: Privatize gpu/command_buffer/service dep on gpu/command_buffer/common:common_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" 12 #include "gpu/command_buffer/service/gl_stream_texture_image.h"
13 #include "gpu/ipc/service/gpu_command_buffer_stub.h"
13 #include "ipc/ipc_listener.h" 14 #include "ipc/ipc_listener.h"
14 #include "ui/gl/android/surface_texture.h" 15 #include "ui/gl/android/surface_texture.h"
15 #include "ui/gl/gl_image.h" 16 #include "ui/gl/gl_image.h"
16 17
17 namespace ui { 18 namespace ui {
18 class ScopedMakeCurrent; 19 class ScopedMakeCurrent;
19 } 20 }
20 21
21 namespace gfx { 22 namespace gfx {
22 class Size; 23 class Size;
23 } 24 }
24 25
25 namespace content { 26 namespace gpu {
26 27
27 class StreamTexture : public gl::GLImage, 28 class StreamTexture : public gl::GLImage,
28 public IPC::Listener, 29 public IPC::Listener,
29 public GpuCommandBufferStub::DestructionObserver { 30 public GpuCommandBufferStub::DestructionObserver {
30 public: 31 public:
31 static bool Create(GpuCommandBufferStub* owner_stub, 32 static bool Create(GpuCommandBufferStub* owner_stub,
32 uint32_t client_texture_id, 33 uint32_t client_texture_id,
33 int stream_id); 34 int stream_id);
34 35
35 private: 36 private:
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 unsigned vertex_shader_; 99 unsigned vertex_shader_;
99 unsigned fragment_shader_; 100 unsigned fragment_shader_;
100 unsigned program_; 101 unsigned program_;
101 unsigned vertex_buffer_; 102 unsigned vertex_buffer_;
102 int u_xform_location_; 103 int u_xform_location_;
103 104
104 base::WeakPtrFactory<StreamTexture> weak_factory_; 105 base::WeakPtrFactory<StreamTexture> weak_factory_;
105 DISALLOW_COPY_AND_ASSIGN(StreamTexture); 106 DISALLOW_COPY_AND_ASSIGN(StreamTexture);
106 }; 107 };
107 108
108 } // namespace content 109 } // namespace gpu
109 110
110 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ 111 #endif // GPU_IPC_SERVICE_STREAM_TEXTURE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698