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

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

Issue 1536713002: Apply the Surface Texture transformation matrix during texture copy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 years 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 a761206b2ac297fd24b43d1a70822422b8c3148a..95fb2603faba2f0c0e2dfce92e8c4829987c0165 100644
--- a/content/common/gpu/stream_texture_android.h
+++ b/content/common/gpu/stream_texture_android.h
@@ -12,6 +12,10 @@
#include "ui/gl/android/surface_texture.h"
#include "ui/gl/gl_image.h"
+namespace ui {
+class ScopedMakeCurrent;
+}
+
namespace gfx {
class Size;
}
@@ -54,6 +58,10 @@ class StreamTexture : public gl::GLImage,
// GpuCommandBufferStub::DestructionObserver implementation.
void OnWillDestroyStub() override;
+ scoped_ptr<ui::ScopedMakeCurrent> MakeStubCurrent();
+
+ void UpdateTexImage();
+
// Called when a new frame is available for the SurfaceTexture.
void OnFrameAvailable();
@@ -84,6 +92,13 @@ class StreamTexture : public gl::GLImage,
bool has_listener_;
uint32 texture_id_;
+ unsigned framebuffer_;
+ unsigned vertex_shader_;
+ unsigned fragment_shader_;
+ unsigned program_;
+ unsigned vertex_buffer_;
+ int u_xform_location_;
+
base::WeakPtrFactory<StreamTexture> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(StreamTexture);
};
« no previous file with comments | « no previous file | content/common/gpu/stream_texture_android.cc » ('j') | content/common/gpu/stream_texture_android.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698