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

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

Issue 16304003: Unified OutputSurface::SwapBuffers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to 205473 Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/output/gl_frame_data.cc ('k') | 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual const RendererCapabilities& Capabilities() const OVERRIDE; 53 virtual const RendererCapabilities& Capabilities() const OVERRIDE;
54 54
55 WebKit::WebGraphicsContext3D* Context(); 55 WebKit::WebGraphicsContext3D* Context();
56 56
57 virtual void ViewportChanged() OVERRIDE; 57 virtual void ViewportChanged() OVERRIDE;
58 58
59 // Waits for rendering to finish. 59 // Waits for rendering to finish.
60 virtual void Finish() OVERRIDE; 60 virtual void Finish() OVERRIDE;
61 61
62 virtual void DoNoOp() OVERRIDE; 62 virtual void DoNoOp() OVERRIDE;
63 // Puts backbuffer onscreen. 63 virtual void SwapBuffers() OVERRIDE;
64 virtual void SwapBuffers(const ui::LatencyInfo& latency_info) OVERRIDE;
65 64
66 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE; 65 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE;
67 66
68 virtual bool IsContextLost() OVERRIDE; 67 virtual bool IsContextLost() OVERRIDE;
69 68
70 virtual void SetVisible(bool visible) OVERRIDE; 69 virtual void SetVisible(bool visible) OVERRIDE;
71 70
72 virtual void SendManagedMemoryStats(size_t bytes_visible, 71 virtual void SendManagedMemoryStats(size_t bytes_visible,
73 size_t bytes_visible_and_nearby, 72 size_t bytes_visible_and_nearby,
74 size_t bytes_allocated) OVERRIDE; 73 size_t bytes_allocated) OVERRIDE;
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 #if DEBUG_GL_CALLS && !defined(NDEBUG) 443 #if DEBUG_GL_CALLS && !defined(NDEBUG)
445 #define GLC(context, x) \ 444 #define GLC(context, x) \
446 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 445 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
447 #else 446 #else
448 #define GLC(context, x) (x) 447 #define GLC(context, x) (x)
449 #endif 448 #endif
450 449
451 } // namespace cc 450 } // namespace cc
452 451
453 #endif // CC_OUTPUT_GL_RENDERER_H_ 452 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/gl_frame_data.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698