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

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: More plumbing Created 6 years, 9 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(int plane_z_order,
2796 unsigned plane_transform,
2797 unsigned overlay_texture_id,
2798 const gfx::Rect& display_bounds,
2799 gfx::RectF uv_rect) {
2800 NOTREACHED() << "Overlay supported isn't finished.";
2801 }
2802
2795 void GLES2Implementation::OnSwapBuffersComplete() { 2803 void GLES2Implementation::OnSwapBuffersComplete() {
2796 if (!swap_buffers_complete_callback_.is_null()) 2804 if (!swap_buffers_complete_callback_.is_null())
2797 swap_buffers_complete_callback_.Run(); 2805 swap_buffers_complete_callback_.Run();
2798 } 2806 }
2799 2807
2800 GLboolean GLES2Implementation::EnableFeatureCHROMIUM( 2808 GLboolean GLES2Implementation::EnableFeatureCHROMIUM(
2801 const char* feature) { 2809 const char* feature) {
2802 GPU_CLIENT_SINGLE_THREAD_CHECK(); 2810 GPU_CLIENT_SINGLE_THREAD_CHECK();
2803 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glEnableFeatureCHROMIUM(" 2811 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glEnableFeatureCHROMIUM("
2804 << feature << ")"); 2812 << feature << ")");
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after
3921 CheckGLError(); 3929 CheckGLError();
3922 } 3930 }
3923 3931
3924 // Include the auto-generated part of this file. We split this because it means 3932 // 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 3933 // 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. 3934 // instead of having to edit some template or the code generator.
3927 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" 3935 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h"
3928 3936
3929 } // namespace gles2 3937 } // namespace gles2
3930 } // namespace gpu 3938 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698