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

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

Issue 1848923003: Revert of Make Android StreamTexture implement GLStreamTextureImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « cc/layers/video_layer_impl.cc ('k') | content/common/gpu/stream_texture_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8852965df333f68c86897da3d05e91e8984455e2..e19fc1b321a23cff8c83892b195c7517fa2113e7 100644
--- a/content/common/gpu/stream_texture_android.h
+++ b/content/common/gpu/stream_texture_android.h
@@ -10,7 +10,6 @@
#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"
@@ -25,7 +24,7 @@
namespace content {
-class StreamTexture : public gpu::gles2::GLStreamTextureImage,
+class StreamTexture : public gl::GLImage,
public IPC::Listener,
public GpuCommandBufferStub::DestructionObserver {
public:
@@ -58,9 +57,6 @@
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;
@@ -87,6 +83,9 @@
// 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_layer_impl.cc ('k') | content/common/gpu/stream_texture_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698