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

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

Issue 1406643002: Stash: Alternate prototype for NativeLayer renderer with GL fallback Base URL: https://chromium.googlesource.com/chromium/src.git@solid
Patch Set: Created 5 years, 2 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
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <GLES2/gl2.h> 9 #include <GLES2/gl2.h>
10 #include <GLES2/gl2ext.h> 10 #include <GLES2/gl2ext.h>
(...skipping 4287 matching lines...) Expand 10 before | Expand all | Expand 10 after
4298 display_bounds.x(), 4298 display_bounds.x(),
4299 display_bounds.y(), 4299 display_bounds.y(),
4300 display_bounds.width(), 4300 display_bounds.width(),
4301 display_bounds.height(), 4301 display_bounds.height(),
4302 uv_rect.x(), 4302 uv_rect.x(),
4303 uv_rect.y(), 4303 uv_rect.y(),
4304 uv_rect.width(), 4304 uv_rect.width(),
4305 uv_rect.height()); 4305 uv_rect.height());
4306 } 4306 }
4307 4307
4308 void GLES2Implementation::ScheduleSolidColorOverlayPlane(
4309 int z_order,
4310 const gfx::Rect& bounds,
4311 float red,
4312 float green,
4313 float blue,
4314 float alpha) {
4315 ScheduleSolidColorOverlayPlaneCHROMIUM(z_order, bounds.x(), bounds.y(),
4316 bounds.width(), bounds.height(), red,
4317 green, blue, alpha);
4318 }
4319
4308 GLboolean GLES2Implementation::EnableFeatureCHROMIUM( 4320 GLboolean GLES2Implementation::EnableFeatureCHROMIUM(
4309 const char* feature) { 4321 const char* feature) {
4310 GPU_CLIENT_SINGLE_THREAD_CHECK(); 4322 GPU_CLIENT_SINGLE_THREAD_CHECK();
4311 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glEnableFeatureCHROMIUM(" 4323 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glEnableFeatureCHROMIUM("
4312 << feature << ")"); 4324 << feature << ")");
4313 TRACE_EVENT0("gpu", "GLES2::EnableFeatureCHROMIUM"); 4325 TRACE_EVENT0("gpu", "GLES2::EnableFeatureCHROMIUM");
4314 typedef cmds::EnableFeatureCHROMIUM::Result Result; 4326 typedef cmds::EnableFeatureCHROMIUM::Result Result;
4315 Result* result = GetResultAs<Result*>(); 4327 Result* result = GetResultAs<Result*>();
4316 if (!result) { 4328 if (!result) {
4317 return false; 4329 return false;
(...skipping 1606 matching lines...) Expand 10 before | Expand all | Expand 10 after
5924 CheckGLError(); 5936 CheckGLError();
5925 } 5937 }
5926 5938
5927 // Include the auto-generated part of this file. We split this because it means 5939 // Include the auto-generated part of this file. We split this because it means
5928 // we can easily edit the non-auto generated parts right here in this file 5940 // we can easily edit the non-auto generated parts right here in this file
5929 // instead of having to edit some template or the code generator. 5941 // instead of having to edit some template or the code generator.
5930 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" 5942 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h"
5931 5943
5932 } // namespace gles2 5944 } // namespace gles2
5933 } // namespace gpu 5945 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698