Lines Matching refs:GLRenderer
184 class GLRenderer::ScopedUseGrContext {
186 static scoped_ptr<ScopedUseGrContext> Create(GLRenderer* renderer,
200 ScopedUseGrContext(GLRenderer* renderer, DrawingFrame* frame)
212 GLRenderer* renderer_;
218 struct GLRenderer::PendingAsyncReadPixels {
229 class GLRenderer::SyncQuery {
263 explicit Fence(base::WeakPtr<GLRenderer::SyncQuery> query)
286 scoped_ptr<GLRenderer> GLRenderer::Create(
293 return make_scoped_ptr(new GLRenderer(client,
301 GLRenderer::GLRenderer(RendererClient* client,
338 // The updater can access textures while the GLRenderer is using them.
357 GLRenderer::~GLRenderer() {
369 const RendererCapabilitiesImpl& GLRenderer::Capabilities() const {
373 void GLRenderer::DebugGLCall(GLES2Interface* gl,
384 void GLRenderer::DidChangeVisibility() {
390 void GLRenderer::ReleaseRenderPassTextures() { render_pass_textures_.clear(); }
392 void GLRenderer::DiscardPixels(bool has_external_stencil_test,
406 void GLRenderer::ClearFramebuffer(DrawingFrame* frame,
434 void GLRenderer::BeginDrawingFrame(DrawingFrame* frame) {
438 TRACE_EVENT0("cc", "GLRenderer::BeginDrawingFrame");
472 void GLRenderer::DoNoOp() {
477 void GLRenderer::DoDrawQuad(DrawingFrame* frame, const DrawQuad* quad) {
525 void GLRenderer::DrawCheckerboardQuad(const DrawingFrame* frame,
568 void GLRenderer::DrawDebugBorderQuad(const DrawingFrame* frame,
582 GLRenderer::ToGLMatrix(&gl_matrix[0],
606 scoped_ptr<GLRenderer::ScopedUseGrContext> use_gr_context,
690 scoped_ptr<GLRenderer::ScopedUseGrContext> use_gr_context,
812 scoped_ptr<ScopedResource> GLRenderer::GetBackgroundWithFilters(
948 void GLRenderer::DrawRenderPassQuad(DrawingFrame* frame,
1363 bool GLRenderer::SetupQuadForAntialiasing(
1447 void GLRenderer::DrawSolidColorQuad(const DrawingFrame* frame,
1542 void GLRenderer::DrawTileQuad(const DrawingFrame* frame,
1547 void GLRenderer::DrawContentQuad(const DrawingFrame* frame,
1720 void GLRenderer::DrawYUVVideoQuad(const DrawingFrame* frame,
1847 void GLRenderer::DrawStreamVideoQuad(const DrawingFrame* frame,
1885 void GLRenderer::DrawPictureQuad(const DrawingFrame* frame,
1965 void GLRenderer::FlushTextureQuadCache() {
2029 void GLRenderer::EnqueueTextureQuad(const DrawingFrame* frame,
2094 void GLRenderer::DrawIOSurfaceQuad(const DrawingFrame* frame,
2140 void GLRenderer::FinishDrawingFrame(DrawingFrame* frame) {
2156 void GLRenderer::FinishDrawingQuadList() { FlushTextureQuadCache(); }
2158 bool GLRenderer::FlippedFramebuffer() const { return true; }
2160 void GLRenderer::EnsureScissorTestEnabled() {
2169 void GLRenderer::EnsureScissorTestDisabled() {
2178 void GLRenderer::CopyCurrentRenderPassToBitmap(
2187 void GLRenderer::ToGLMatrix(float* gl_matrix, const gfx::Transform& transform) {
2191 void GLRenderer::SetShaderQuadF(const gfx::QuadF& quad, int quad_location) {
2207 void GLRenderer::SetShaderOpacity(float opacity, int alpha_location) {
2212 void GLRenderer::SetStencilEnabled(bool enabled) {
2223 void GLRenderer::SetBlendEnabled(bool enabled) {
2234 void GLRenderer::SetUseProgram(unsigned program) {
2241 void GLRenderer::DrawQuadGeometry(const DrawingFrame* frame,
2254 void GLRenderer::CopyTextureToFramebuffer(const DrawingFrame* frame,
2290 void GLRenderer::Finish() {
2291 TRACE_EVENT0("cc", "GLRenderer::Finish");
2295 void GLRenderer::SwapBuffers(const CompositorFrameMetadata& metadata) {
2298 TRACE_EVENT0("cc,benchmark", "GLRenderer::SwapBuffers");
2333 void GLRenderer::EnforceMemoryPolicy() {
2335 TRACE_EVENT0("cc", "GLRenderer::EnforceMemoryPolicy dropping resources");
2344 void GLRenderer::DiscardBackbuffer() {
2356 void GLRenderer::EnsureBackbuffer() {
2364 void GLRenderer::GetFramebufferPixelsAsync(
2512 base::Closure finished_callback = base::Bind(&GLRenderer::FinishedReadback,
2533 void GLRenderer::FinishedReadback(unsigned source_buffer,
2592 void GLRenderer::GetFramebufferTexture(unsigned texture_id,
2614 bool GLRenderer::UseScopedTexture(DrawingFrame* frame,
2624 void GLRenderer::BindFramebufferToOutputSurface(DrawingFrame* frame) {
2636 bool GLRenderer::BindFramebufferToTexture(DrawingFrame* frame,
2662 void GLRenderer::SetScissorTestRect(const gfx::Rect& scissor_rect) {
2681 void GLRenderer::SetDrawViewport(const gfx::Rect& window_space_viewport) {
2690 void GLRenderer::InitializeSharedObjects() {
2691 TRACE_EVENT0("cc", "GLRenderer::InitializeSharedObjects");
2700 const GLRenderer::TileCheckerboardProgram*
2701 GLRenderer::GetTileCheckerboardProgram() {
2703 TRACE_EVENT0("cc", "GLRenderer::checkerboardProgram::initalize");
2711 const GLRenderer::DebugBorderProgram* GLRenderer::GetDebugBorderProgram() {
2713 TRACE_EVENT0("cc", "GLRenderer::debugBorderProgram::initialize");
2721 const GLRenderer::SolidColorProgram* GLRenderer::GetSolidColorProgram() {
2723 TRACE_EVENT0("cc", "GLRenderer::solidColorProgram::initialize");
2731 const GLRenderer::SolidColorProgramAA* GLRenderer::GetSolidColorProgramAA() {
2733 TRACE_EVENT0("cc", "GLRenderer::solidColorProgramAA::initialize");
2741 const GLRenderer::RenderPassProgram* GLRenderer::GetRenderPassProgram(
2747 TRACE_EVENT0("cc", "GLRenderer::renderPassProgram::initialize");
2754 const GLRenderer::RenderPassProgramAA* GLRenderer::GetRenderPassProgramAA(
2760 TRACE_EVENT0("cc", "GLRenderer::renderPassProgramAA::initialize");
2767 const GLRenderer::RenderPassMaskProgram* GLRenderer::GetRenderPassMaskProgram(
2773 TRACE_EVENT0("cc", "GLRenderer::renderPassMaskProgram::initialize");
2780 const GLRenderer::RenderPassMaskProgramAA*
2781 GLRenderer::GetRenderPassMaskProgramAA(TexCoordPrecision precision) {
2786 TRACE_EVENT0("cc", "GLRenderer::renderPassMaskProgramAA::initialize");
2793 const GLRenderer::RenderPassColorMatrixProgram*
2794 GLRenderer::GetRenderPassColorMatrixProgram(TexCoordPrecision precision) {
2800 TRACE_EVENT0("cc", "GLRenderer::renderPassColorMatrixProgram::initialize");
2807 const GLRenderer::RenderPassColorMatrixProgramAA*
2808 GLRenderer::GetRenderPassColorMatrixProgramAA(TexCoordPrecision precision) {
2815 "GLRenderer::renderPassColorMatrixProgramAA::initialize");
2822 const GLRenderer::RenderPassMaskColorMatrixProgram*
2823 GLRenderer::GetRenderPassMaskColorMatrixProgram(TexCoordPrecision precision) {
2830 "GLRenderer::renderPassMaskColorMatrixProgram::initialize");
2837 const GLRenderer::RenderPassMaskColorMatrixProgramAA*
2838 GLRenderer::GetRenderPassMaskColorMatrixProgramAA(TexCoordPrecision precision) {
2845 "GLRenderer::renderPassMaskColorMatrixProgramAA::initialize");
2852 const GLRenderer::TileProgram* GLRenderer::GetTileProgram(
2861 TRACE_EVENT0("cc", "GLRenderer::tileProgram::initialize");
2868 const GLRenderer::TileProgramOpaque* GLRenderer::GetTileProgramOpaque(
2877 TRACE_EVENT0("cc", "GLRenderer::tileProgramOpaque::initialize");
2884 const GLRenderer::TileProgramAA* GLRenderer::GetTileProgramAA(
2893 TRACE_EVENT0("cc", "GLRenderer::tileProgramAA::initialize");
2900 const GLRenderer::TileProgramSwizzle* GLRenderer::GetTileProgramSwizzle(
2909 TRACE_EVENT0("cc", "GLRenderer::tileProgramSwizzle::initialize");
2916 const GLRenderer::TileProgramSwizzleOpaque*
2917 GLRenderer::GetTileProgramSwizzleOpaque(TexCoordPrecision precision,
2926 TRACE_EVENT0("cc", "GLRenderer::tileProgramSwizzleOpaque::initialize");
2933 const GLRenderer::TileProgramSwizzleAA* GLRenderer::GetTileProgramSwizzleAA(
2942 TRACE_EVENT0("cc", "GLRenderer::tileProgramSwizzleAA::initialize");
2949 const GLRenderer::TextureProgram* GLRenderer::GetTextureProgram(
2955 TRACE_EVENT0("cc", "GLRenderer::textureProgram::initialize");
2962 const GLRenderer::NonPremultipliedTextureProgram*
2963 GLRenderer::GetNonPremultipliedTextureProgram(TexCoordPrecision precision) {
2970 "GLRenderer::NonPremultipliedTextureProgram::Initialize");
2977 const GLRenderer::TextureBackgroundProgram*
2978 GLRenderer::GetTextureBackgroundProgram(TexCoordPrecision precision) {
2983 TRACE_EVENT0("cc", "GLRenderer::textureProgram::initialize");
2990 const GLRenderer::NonPremultipliedTextureBackgroundProgram*
2991 GLRenderer::GetNonPremultipliedTextureBackgroundProgram(
2999 "GLRenderer::NonPremultipliedTextureProgram::Initialize");
3006 const GLRenderer::TextureProgram* GLRenderer::GetTextureIOSurfaceProgram(
3012 TRACE_EVENT0("cc", "GLRenderer::textureIOSurfaceProgram::initialize");
3019 const GLRenderer::VideoYUVProgram* GLRenderer::GetVideoYUVProgram(
3025 TRACE_EVENT0("cc", "GLRenderer::videoYUVProgram::initialize");
3032 const GLRenderer::VideoYUVAProgram* GLRenderer::GetVideoYUVAProgram(
3038 TRACE_EVENT0("cc", "GLRenderer::videoYUVAProgram::initialize");
3045 const GLRenderer::VideoStreamTextureProgram*
3046 GLRenderer::GetVideoStreamTextureProgram(TexCoordPrecision precision) {
3054 TRACE_EVENT0("cc", "GLRenderer::streamTextureProgram::initialize");
3061 void GLRenderer::CleanupSharedObjects() {
3109 void GLRenderer::ReinitializeGLState() {
3119 void GLRenderer::RestoreGLState() {
3120 // This restores the current GLRenderer state to the GL context.
3155 void GLRenderer::RestoreFramebuffer(DrawingFrame* frame) {
3159 bool GLRenderer::IsContextLost() {
3163 void GLRenderer::ScheduleOverlays(DrawingFrame* frame) {