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

Unified Diff: ui/gl/gl_image_surface_texture.h

Issue 1050923003: zero-copy: Clarify to allocate/destroy GpuMemoryBuffer on any thread and use it on the main thread o (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rephrase comment in gpu_channel_manager.cc Created 5 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
« no previous file with comments | « ui/gl/gl_image_io_surface.cc ('k') | ui/gl/gl_image_surface_texture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_surface_texture.h
diff --git a/ui/gl/gl_image_surface_texture.h b/ui/gl/gl_image_surface_texture.h
index d2ff5b707dd66bc225a6a498e8d7ec1a39e13199..b4d57b0ad742815363a5015112bcfeff23db6e5d 100644
--- a/ui/gl/gl_image_surface_texture.h
+++ b/ui/gl/gl_image_surface_texture.h
@@ -6,6 +6,7 @@
#define UI_GL_GL_IMAGE_SURFACE_TEXTURE_H_
#include "base/memory/ref_counted.h"
+#include "base/threading/thread_checker.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_image.h"
@@ -41,6 +42,7 @@ class GL_EXPORT GLImageSurfaceTexture : public GLImage {
scoped_refptr<SurfaceTexture> surface_texture_;
const gfx::Size size_;
GLint texture_id_;
+ base::ThreadChecker thread_checker_;
DISALLOW_COPY_AND_ASSIGN(GLImageSurfaceTexture);
};
« no previous file with comments | « ui/gl/gl_image_io_surface.cc ('k') | ui/gl/gl_image_surface_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698