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

Unified Diff: content/common/gpu/stream_texture_android.h

Issue 1746983002: Make Android StreamTexture implement GLStreamTextureImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't remove the default stream texture matrix from cc/layers 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/stream_texture_android.h
diff --git a/content/common/gpu/stream_texture_android.h b/content/common/gpu/stream_texture_android.h
index e19fc1b321a23cff8c83892b195c7517fa2113e7..8852965df333f68c86897da3d05e91e8984455e2 100644
--- a/content/common/gpu/stream_texture_android.h
+++ b/content/common/gpu/stream_texture_android.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "content/common/gpu/gpu_command_buffer_stub.h"
+#include "gpu/command_buffer/service/gl_stream_texture_image.h"
#include "ipc/ipc_listener.h"
#include "ui/gl/android/surface_texture.h"
#include "ui/gl/gl_image.h"
@@ -24,7 +25,7 @@ class Size;
namespace content {
-class StreamTexture : public gl::GLImage,
+class StreamTexture : public gpu::gles2::GLStreamTextureImage,
public IPC::Listener,
public GpuCommandBufferStub::DestructionObserver {
public:
@@ -57,6 +58,9 @@ class StreamTexture : public gl::GLImage,
uint64_t process_tracing_id,
const std::string& dump_name) override;
+ // gpu::gles2::GLStreamTextureMatrix implementation
+ void GetTextureMatrix(float xform[16]) override;
+
// GpuCommandBufferStub::DestructionObserver implementation.
void OnWillDestroyStub() override;
@@ -83,9 +87,6 @@ class StreamTexture : public gl::GLImage,
// Current size of the surface texture.
gfx::Size size_;
- // Whether we ever bound a valid frame.
- bool has_valid_frame_;
-
// Whether a new frame is available that we should update to.
bool has_pending_frame_;
« no previous file with comments | « cc/layers/video_frame_provider_client_impl_unittest.cc ('k') | content/common/gpu/stream_texture_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698