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

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

Issue 446973002: LayerTreeHostImpl knows if it has an output surface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
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_deque.h" 10 #include "cc/base/scoped_ptr_deque.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 virtual ~GLRenderer(); 58 virtual ~GLRenderer();
59 59
60 virtual const RendererCapabilitiesImpl& Capabilities() const OVERRIDE; 60 virtual const RendererCapabilitiesImpl& Capabilities() const OVERRIDE;
61 61
62 // Waits for rendering to finish. 62 // Waits for rendering to finish.
63 virtual void Finish() OVERRIDE; 63 virtual void Finish() OVERRIDE;
64 64
65 virtual void DoNoOp() OVERRIDE; 65 virtual void DoNoOp() OVERRIDE;
66 virtual void SwapBuffers(const CompositorFrameMetadata& metadata) OVERRIDE; 66 virtual void SwapBuffers(const CompositorFrameMetadata& metadata) OVERRIDE;
67 67
68 virtual bool IsContextLost() OVERRIDE; 68 virtual bool IsContextLost();
danakj 2014/08/06 18:56:43 can be made private?
dneto 2014/08/06 20:20:35 It's used in unit tests, class GLRendererShaderPix
69 69
70 static void DebugGLCall(gpu::gles2::GLES2Interface* gl, 70 static void DebugGLCall(gpu::gles2::GLES2Interface* gl,
71 const char* command, 71 const char* command,
72 const char* file, 72 const char* file,
73 int line); 73 int line);
74 74
75 protected: 75 protected:
76 GLRenderer(RendererClient* client, 76 GLRenderer(RendererClient* client,
77 const LayerTreeSettings* settings, 77 const LayerTreeSettings* settings,
78 OutputSurface* output_surface, 78 OutputSurface* output_surface,
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 #if DEBUG_GL_CALLS && !defined(NDEBUG) 433 #if DEBUG_GL_CALLS && !defined(NDEBUG)
434 #define GLC(context, x) \ 434 #define GLC(context, x) \
435 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 435 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
436 #else 436 #else
437 #define GLC(context, x) (x) 437 #define GLC(context, x) (x)
438 #endif 438 #endif
439 439
440 } // namespace cc 440 } // namespace cc
441 441
442 #endif // CC_OUTPUT_GL_RENDERER_H_ 442 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698