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

Unified Diff: content/renderer/gpu/renderer_gl_context.h

Issue 7834021: Fix build error in release mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 | « no previous file | content/renderer/gpu/renderer_gl_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/renderer_gl_context.h
===================================================================
--- content/renderer/gpu/renderer_gl_context.h (revision 99648)
+++ content/renderer/gpu/renderer_gl_context.h (working copy)
@@ -14,12 +14,12 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "base/threading/non_thread_safe.h"
#include "build/build_config.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/size.h"
class GpuChannelHost;
-class MessageLoop;
class CommandBufferProxy;
class GURL;
class Task;
@@ -32,7 +32,8 @@
}
}
-class RendererGLContext : public base::SupportsWeakPtr<RendererGLContext> {
+class RendererGLContext : public base::SupportsWeakPtr<RendererGLContext>,
+ public base::NonThreadSafe {
public:
// These are the same error codes as used by EGL.
enum Error {
@@ -199,10 +200,6 @@
gpu::gles2::GLES2Implementation* gles2_implementation_;
Error last_error_;
int frame_number_;
-#ifndef NDEBUG
- // Used to assert that this object is used on a single thread.
- MessageLoop* message_loop_;
-#endif
DISALLOW_COPY_AND_ASSIGN(RendererGLContext);
};
« no previous file with comments | « no previous file | content/renderer/gpu/renderer_gl_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698