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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 1472993003: Add CommitOverlayPlanesCHROMIUM command buffer function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forgot to add the extension description txt file Created 5 years 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 (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 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <cmath> 10 #include <cmath>
(...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after
1116 GLsizei width, 1116 GLsizei width,
1117 GLsizei height, 1117 GLsizei height,
1118 GLint border); 1118 GLint border);
1119 1119
1120 // Wrapper for SwapBuffers. 1120 // Wrapper for SwapBuffers.
1121 void DoSwapBuffers(); 1121 void DoSwapBuffers();
1122 1122
1123 // Callback for async SwapBuffers. 1123 // Callback for async SwapBuffers.
1124 void FinishSwapBuffers(gfx::SwapResult result); 1124 void FinishSwapBuffers(gfx::SwapResult result);
1125 1125
1126 void DoCommitOverlayPlanes();
1127
1126 // Wrapper for SwapInterval. 1128 // Wrapper for SwapInterval.
1127 void DoSwapInterval(int interval); 1129 void DoSwapInterval(int interval);
1128 1130
1129 // Wrapper for CopyTexSubImage2D. 1131 // Wrapper for CopyTexSubImage2D.
1130 void DoCopyTexSubImage2D( 1132 void DoCopyTexSubImage2D(
1131 GLenum target, 1133 GLenum target,
1132 GLint level, 1134 GLint level,
1133 GLint xoffset, 1135 GLint xoffset,
1134 GLint yoffset, 1136 GLint yoffset,
1135 GLint x, 1137 GLint x,
(...skipping 10854 matching lines...) Expand 10 before | Expand all | Expand 10 after
11990 void GLES2DecoderImpl::FinishSwapBuffers(gfx::SwapResult result) { 11992 void GLES2DecoderImpl::FinishSwapBuffers(gfx::SwapResult result) {
11991 if (result == gfx::SwapResult::SWAP_FAILED) { 11993 if (result == gfx::SwapResult::SWAP_FAILED) {
11992 LOG(ERROR) << "Context lost because SwapBuffers failed."; 11994 LOG(ERROR) << "Context lost because SwapBuffers failed.";
11993 if (!CheckResetStatus()) { 11995 if (!CheckResetStatus()) {
11994 MarkContextLost(error::kUnknown); 11996 MarkContextLost(error::kUnknown);
11995 group_->LoseContexts(error::kUnknown); 11997 group_->LoseContexts(error::kUnknown);
11996 } 11998 }
11997 } 11999 }
11998 } 12000 }
11999 12001
12002 void GLES2DecoderImpl::DoCommitOverlayPlanes() {
12003 // TODO(watk): crbug.com/560592
12004 NOTIMPLEMENTED();
12005 }
12006
12000 void GLES2DecoderImpl::DoSwapInterval(int interval) { 12007 void GLES2DecoderImpl::DoSwapInterval(int interval) {
12001 context_->SetSwapInterval(interval); 12008 context_->SetSwapInterval(interval);
12002 } 12009 }
12003 12010
12004 error::Error GLES2DecoderImpl::HandleEnableFeatureCHROMIUM( 12011 error::Error GLES2DecoderImpl::HandleEnableFeatureCHROMIUM(
12005 uint32 immediate_data_size, 12012 uint32 immediate_data_size,
12006 const void* cmd_data) { 12013 const void* cmd_data) {
12007 const gles2::cmds::EnableFeatureCHROMIUM& c = 12014 const gles2::cmds::EnableFeatureCHROMIUM& c =
12008 *static_cast<const gles2::cmds::EnableFeatureCHROMIUM*>(cmd_data); 12015 *static_cast<const gles2::cmds::EnableFeatureCHROMIUM*>(cmd_data);
12009 Bucket* bucket = GetBucket(c.bucket_id); 12016 Bucket* bucket = GetBucket(c.bucket_id);
(...skipping 3519 matching lines...) Expand 10 before | Expand all | Expand 10 after
15529 return error::kNoError; 15536 return error::kNoError;
15530 } 15537 }
15531 15538
15532 // Include the auto-generated part of this file. We split this because it means 15539 // Include the auto-generated part of this file. We split this because it means
15533 // we can easily edit the non-auto generated parts right here in this file 15540 // we can easily edit the non-auto generated parts right here in this file
15534 // instead of having to edit some template or the code generator. 15541 // instead of having to edit some template or the code generator.
15535 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 15542 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
15536 15543
15537 } // namespace gles2 15544 } // namespace gles2
15538 } // namespace gpu 15545 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_ids_autogen.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698