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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 208213003: Plumb overlay processing into DirectRenderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Introduced ScopedExportLock Created 6 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // A class to emulate GLES2 over command buffers. 5 // A class to emulate GLES2 over command buffers.
6 6
7 #include "gpu/command_buffer/client/gles2_implementation.h" 7 #include "gpu/command_buffer/client/gles2_implementation.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
(...skipping 2774 matching lines...) Expand 10 before | Expand all | Expand 10 after
2785 sub_buffer.height()); 2785 sub_buffer.height());
2786 gpu_control_->Echo(base::Bind(&GLES2Implementation::OnSwapBuffersComplete, 2786 gpu_control_->Echo(base::Bind(&GLES2Implementation::OnSwapBuffersComplete,
2787 weak_ptr_factory_.GetWeakPtr())); 2787 weak_ptr_factory_.GetWeakPtr()));
2788 } 2788 }
2789 2789
2790 void GLES2Implementation::SetSwapBuffersCompleteCallback( 2790 void GLES2Implementation::SetSwapBuffersCompleteCallback(
2791 const base::Closure& swap_buffers_complete_callback) { 2791 const base::Closure& swap_buffers_complete_callback) {
2792 swap_buffers_complete_callback_ = swap_buffers_complete_callback; 2792 swap_buffers_complete_callback_ = swap_buffers_complete_callback;
2793 } 2793 }
2794 2794
2795 void GLES2Implementation::ScheduleOverlayPlane(
2796 int plane_z_order,
2797 unsigned plane_transform,
2798 const gpu::Mailbox& overlay_texture,
2799 const gfx::Rect& display_bounds,
2800 const gfx::RectF& uv_rect) {
2801 NOTREACHED() << "Overlay supported isn't finished.";
2802 }
2803
2795 void GLES2Implementation::OnSwapBuffersComplete() { 2804 void GLES2Implementation::OnSwapBuffersComplete() {
2796 if (!swap_buffers_complete_callback_.is_null()) 2805 if (!swap_buffers_complete_callback_.is_null())
2797 swap_buffers_complete_callback_.Run(); 2806 swap_buffers_complete_callback_.Run();
2798 } 2807 }
2799 2808
2800 GLboolean GLES2Implementation::EnableFeatureCHROMIUM( 2809 GLboolean GLES2Implementation::EnableFeatureCHROMIUM(
2801 const char* feature) { 2810 const char* feature) {
2802 GPU_CLIENT_SINGLE_THREAD_CHECK(); 2811 GPU_CLIENT_SINGLE_THREAD_CHECK();
2803 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glEnableFeatureCHROMIUM(" 2812 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glEnableFeatureCHROMIUM("
2804 << feature << ")"); 2813 << feature << ")");
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after
3921 CheckGLError(); 3930 CheckGLError();
3922 } 3931 }
3923 3932
3924 // Include the auto-generated part of this file. We split this because it means 3933 // Include the auto-generated part of this file. We split this because it means
3925 // we can easily edit the non-auto generated parts right here in this file 3934 // we can easily edit the non-auto generated parts right here in this file
3926 // instead of having to edit some template or the code generator. 3935 // instead of having to edit some template or the code generator.
3927 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" 3936 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h"
3928 3937
3929 } // namespace gles2 3938 } // namespace gles2
3930 } // namespace gpu 3939 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698