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

Side by Side Diff: cc/output/gl_renderer.h

Issue 105553003: Use GLES2Interface in GLRenderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_OUTPUT_GL_RENDERER_H_ 5 #ifndef CC_OUTPUT_GL_RENDERER_H_
6 #define CC_OUTPUT_GL_RENDERER_H_ 6 #define CC_OUTPUT_GL_RENDERER_H_
7 7
8 #include "base/cancelable_callback.h" 8 #include "base/cancelable_callback.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/base/scoped_ptr_vector.h" 10 #include "cc/base/scoped_ptr_vector.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE; 69 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE;
70 70
71 virtual bool IsContextLost() OVERRIDE; 71 virtual bool IsContextLost() OVERRIDE;
72 72
73 virtual void SetVisible(bool visible) OVERRIDE; 73 virtual void SetVisible(bool visible) OVERRIDE;
74 74
75 virtual void SendManagedMemoryStats(size_t bytes_visible, 75 virtual void SendManagedMemoryStats(size_t bytes_visible,
76 size_t bytes_visible_and_nearby, 76 size_t bytes_visible_and_nearby,
77 size_t bytes_allocated) OVERRIDE; 77 size_t bytes_allocated) OVERRIDE;
78 78
79 static void DebugGLCall(blink::WebGraphicsContext3D* context, 79 static void DebugGLCall(gpu::gles2::GLES2Interface* gl,
80 const char* command, 80 const char* command,
81 const char* file, 81 const char* file,
82 int line); 82 int line);
83 83
84 protected: 84 protected:
85 GLRenderer(RendererClient* client, 85 GLRenderer(RendererClient* client,
86 const LayerTreeSettings* settings, 86 const LayerTreeSettings* settings,
87 OutputSurface* output_surface, 87 OutputSurface* output_surface,
88 ResourceProvider* resource_provider, 88 ResourceProvider* resource_provider,
89 TextureMailboxDeleter* texture_mailbox_deleter, 89 TextureMailboxDeleter* texture_mailbox_deleter,
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 #if DEBUG_GL_CALLS && !defined(NDEBUG) 444 #if DEBUG_GL_CALLS && !defined(NDEBUG)
445 #define GLC(context, x) \ 445 #define GLC(context, x) \
446 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 446 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
447 #else 447 #else
448 #define GLC(context, x) (x) 448 #define GLC(context, x) (x)
449 #endif 449 #endif
450 450
451 } // namespace cc 451 } // namespace cc
452 452
453 #endif // CC_OUTPUT_GL_RENDERER_H_ 453 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698