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

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

Issue 411643002: Early wait on texture resource sync points in gl_renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 virtual void BindFramebufferToOutputSurface(DrawingFrame* frame) OVERRIDE; 104 virtual void BindFramebufferToOutputSurface(DrawingFrame* frame) OVERRIDE;
105 virtual bool BindFramebufferToTexture(DrawingFrame* frame, 105 virtual bool BindFramebufferToTexture(DrawingFrame* frame,
106 const ScopedResource* resource, 106 const ScopedResource* resource,
107 const gfx::Rect& target_rect) OVERRIDE; 107 const gfx::Rect& target_rect) OVERRIDE;
108 virtual void SetDrawViewport(const gfx::Rect& window_space_viewport) OVERRIDE; 108 virtual void SetDrawViewport(const gfx::Rect& window_space_viewport) OVERRIDE;
109 virtual void SetScissorTestRect(const gfx::Rect& scissor_rect) OVERRIDE; 109 virtual void SetScissorTestRect(const gfx::Rect& scissor_rect) OVERRIDE;
110 virtual void DiscardPixels(bool has_external_stencil_test, 110 virtual void DiscardPixels(bool has_external_stencil_test,
111 bool draw_rect_covers_full_surface) OVERRIDE; 111 bool draw_rect_covers_full_surface) OVERRIDE;
112 virtual void ClearFramebuffer(DrawingFrame* frame, 112 virtual void ClearFramebuffer(DrawingFrame* frame,
113 bool has_external_stencil_test) OVERRIDE; 113 bool has_external_stencil_test) OVERRIDE;
114 virtual void DoPrelockQuad(DrawingFrame* frame,
115 const class DrawQuad*) OVERRIDE;
114 virtual void DoDrawQuad(DrawingFrame* frame, const class DrawQuad*) OVERRIDE; 116 virtual void DoDrawQuad(DrawingFrame* frame, const class DrawQuad*) OVERRIDE;
115 virtual void BeginDrawingFrame(DrawingFrame* frame) OVERRIDE; 117 virtual void BeginDrawingFrame(DrawingFrame* frame) OVERRIDE;
116 virtual void FinishDrawingFrame(DrawingFrame* frame) OVERRIDE; 118 virtual void FinishDrawingFrame(DrawingFrame* frame) OVERRIDE;
117 virtual bool FlippedFramebuffer() const OVERRIDE; 119 virtual bool FlippedFramebuffer() const OVERRIDE;
118 virtual void EnsureScissorTestEnabled() OVERRIDE; 120 virtual void EnsureScissorTestEnabled() OVERRIDE;
119 virtual void EnsureScissorTestDisabled() OVERRIDE; 121 virtual void EnsureScissorTestDisabled() OVERRIDE;
120 virtual void CopyCurrentRenderPassToBitmap( 122 virtual void CopyCurrentRenderPassToBitmap(
121 DrawingFrame* frame, 123 DrawingFrame* frame,
122 scoped_ptr<CopyOutputRequest> request) OVERRIDE; 124 scoped_ptr<CopyOutputRequest> request) OVERRIDE;
123 virtual void FinishDrawingQuadList() OVERRIDE; 125 virtual void FinishDrawingQuadList() OVERRIDE;
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 #if DEBUG_GL_CALLS && !defined(NDEBUG) 435 #if DEBUG_GL_CALLS && !defined(NDEBUG)
434 #define GLC(context, x) \ 436 #define GLC(context, x) \
435 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 437 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
436 #else 438 #else
437 #define GLC(context, x) (x) 439 #define GLC(context, x) (x)
438 #endif 440 #endif
439 441
440 } // namespace cc 442 } // namespace cc
441 443
442 #endif // CC_OUTPUT_GL_RENDERER_H_ 444 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698